We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1371f6a commit 96b0cfaCopy full SHA for 96b0cfa
1 file changed
jest.config.js
@@ -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