Skip to content

Commit d643427

Browse files
test(design-system): exclude some folder and files from coverage [AR-46651] (#132)
[Jira](https://github.com/drivenets/design-system/pull/AR-46651-add-tests-for-components-with-zero-coverage) - '**/stories/**' - some components with multiple stories have "stories" folder - '**/*.stories.{ts,tsx}' - exclude stories itself - '**/.storybook/**' - exlude global Storybook configuration - '**/*.scss' - exclude css files (they appear when you run tests with coverage via Vitest plugin in Cursor)
1 parent 298d259 commit d643427

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/design-system/vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ const dirname = typeof __dirname !== 'undefined' ? __dirname : path.dirname(file
99

1010
export default defineConfig({
1111
test: {
12+
coverage: {
13+
exclude: ['**/stories/**', '**/*.stories.{ts,tsx}', '**/.storybook/**', '**/*.scss'],
14+
},
1215
projects: [
1316
{
1417
extends: true,

0 commit comments

Comments
 (0)