Skip to content

Commit 5a0665f

Browse files
authored
fix: make wrapper component standalone: false explicitly (#498)
1 parent e8ddcf4 commit 5a0665f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: projects/testing-library/src/lib/models.ts

+1
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,7 @@ export interface RenderTemplateOptions<WrapperType, Properties extends object =
473473
* @description
474474
* An Angular component to wrap the component in.
475475
* The template will be overridden with the `template` option.
476+
* NOTE: A standalone component cannot be used as a wrapper.
476477
*
477478
* @default
478479
* `WrapperComponent`, an empty component that strips the `ng-version` attribute

Diff for: projects/testing-library/src/lib/testing-library.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ if (typeof process === 'undefined' || !process.env?.ATL_SKIP_AUTO_CLEANUP) {
616616
}
617617
}
618618

619-
@Component({ selector: 'atl-wrapper-component', template: '' })
619+
@Component({ selector: 'atl-wrapper-component', template: '', standalone: false })
620620
class WrapperComponent {}
621621

622622
/**

0 commit comments

Comments
 (0)