Skip to content

Commit

Permalink
fix: make wrapper component standalone: false explicitly (#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
lacolaco authored Nov 9, 2024
1 parent e8ddcf4 commit 5a0665f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions projects/testing-library/src/lib/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ export interface RenderTemplateOptions<WrapperType, Properties extends object =
* @description
* An Angular component to wrap the component in.
* The template will be overridden with the `template` option.
* NOTE: A standalone component cannot be used as a wrapper.
*
* @default
* `WrapperComponent`, an empty component that strips the `ng-version` attribute
Expand Down
2 changes: 1 addition & 1 deletion projects/testing-library/src/lib/testing-library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ if (typeof process === 'undefined' || !process.env?.ATL_SKIP_AUTO_CLEANUP) {
}
}

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

/**
Expand Down

0 comments on commit 5a0665f

Please sign in to comment.