Skip to content

Commit

Permalink
fix: issue with vue component test
Browse files Browse the repository at this point in the history
  • Loading branch information
nmerget committed Mar 22, 2024
1 parent ba29b0a commit fbefd4e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/components/scripts/post-build/copy-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down
3 changes: 3 additions & 0 deletions packages/components/src/components/popover/popover.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ const comp: any = (
animation="disabled"
data-testid="popover"
slotTrigger={<DBButton data-testid="button">Button</DBButton>}>
{/*<template v-slot:trigger>
<DBButton data-testid="button">Button</DBButton>
</template>*/}
Test
</DBPopover>
</div>
Expand Down

0 comments on commit fbefd4e

Please sign in to comment.