diff --git a/packages/components/scripts/post-build/copy-files.js b/packages/components/scripts/post-build/copy-files.js index 035a200ad7d..088e1225cd9 100644 --- a/packages/components/scripts/post-build/copy-files.js +++ b/packages/components/scripts/post-build/copy-files.js @@ -19,6 +19,13 @@ module.exports = () => { `./src/components/${name}/${name}.spec.tsx`, `../../output/${resolvedFramework}/src/components/${name}/${name}.spec.tsx` ); + if (framework === 'vue') { + Replace({ + files: `../../output/${resolvedFramework}/src/components/${name}/${name}.spec.tsx`, + from: ['{/*', '*/}'], + to: '' + }); + } } Fse.copySync( `./test/playwright/boilerplate`, diff --git a/packages/components/src/components/popover/popover.spec.tsx b/packages/components/src/components/popover/popover.spec.tsx index 63a0652eb9e..97e9f0d19e0 100644 --- a/packages/components/src/components/popover/popover.spec.tsx +++ b/packages/components/src/components/popover/popover.spec.tsx @@ -12,6 +12,9 @@ const comp: any = ( animation="disabled" data-testid="popover" slotTrigger={Button}> + {/**/} Test