-
Notifications
You must be signed in to change notification settings - Fork 1
/
jest.config.js
executable file
·46 lines (46 loc) · 1.34 KB
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
"use strict";
exports.__esModule = true;
var jestConfig = {
// ...Otras configuraciones
preset: 'ts-jest',
transform: {
'\\.(scss)$': 'jest-transform-stub',
'^.+\\.vue$': '@vue/vue3-jest',
'^.+\\.tsx?$': [
'ts-jest',
{
babelConfig: true
},
],
'^.+\\.js$': 'babel-jest',
'\\.(ts|tsx)$': 'ts-jest',
"^.+\\.svg$": "<rootDir>/svgTransform.cjs"
},
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
'^@package/(.*)$': '<rootDir>/src/components/package/$1',
'^@components/(.*)$': '<rootDir>/src/components/$1',
'^@services/(.*)$': '<rootDir>/src/services/$1',
'^@packageTypes/(.*)$': '<rootDir>/src/packageTypes/$1',
'^@fonts/(.*)$': '<rootDir>/src/assets/scss/fonts/$1'
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
testMatch: [
'**/__tests__/*.(js|ts|tsx)',
],
transformIgnorePatterns: [
'node_modules/(?!vue-multiselect)/',
],
testEnvironmentOptions: {
customExportConditions: ['node', 'node-addons']
},
globals: {
'@vue/vue3-jest': {
tsConfig: 'tsconfig.json'
},
'jest-dom': true
},
testEnvironment: 'jsdom',
testTimeout: 90000
};
exports["default"] = jestConfig;