Skip to content

Commit 96b0cfa

Browse files
committed
fix: Exclude e2e folder from Jest runs (use Playwright for E2E)
1 parent 1371f6a commit 96b0cfa

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

jest.config.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module.exports = {
2+
preset: 'ts-jest',
3+
testEnvironment: 'jsdom',
4+
testMatch: ['**/*.spec.ts', '**/*.test.ts'],
5+
testPathIgnorePatterns: ['/node_modules/', '/e2e/'],
6+
moduleNameMapper: {
7+
'^@/(.*)$': '<rootDir>/src/$1'
8+
},
9+
transform: {
10+
'^.+\\.vue$': '@vue/vue3-jest',
11+
'^.+\\.ts$': 'ts-jest'
12+
},
13+
testEnvironmentOptions: {
14+
customExportConditions: ["node", "node-addons"],
15+
},
16+
collectCoverageFrom: [
17+
'src/**/*.{ts,vue}',
18+
'!src/**/*.d.ts',
19+
'!src/main.ts'
20+
]
21+
}

0 commit comments

Comments
 (0)