forked from rancher-sandbox/rancher-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
33 lines (33 loc) · 903 Bytes
/
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
module.exports = {
transform: {
'^.+\\.js$': 'babel-jest',
'^.+\\.ts$': 'ts-jest',
'^.+\\.vue$': 'vue-jest',
},
transformIgnorePatterns: [
'/node_modules/(?!(yaml|jsonpath-plus|@kubernetes/client-node)/)',
],
moduleFileExtensions: [
'js',
'json',
'ts',
'vue',
],
modulePathIgnorePatterns: [
'<rootDir>/dist',
'<rootDir>/pkg/rancher-desktop/dist',
'<rootDir>/.git',
'<rootDir>/e2e',
'<rootDir>/screenshots',
],
moduleNameMapper: {
'\\.css$': '<rootDir>/pkg/rancher-desktop/config/emptyStubForJSLinter.js',
'^@pkg/assets/': '<rootDir>/pkg/rancher-desktop/config/emptyStubForJSLinter.js',
'^@pkg/(.*)$': '<rootDir>/pkg/rancher-desktop/$1',
},
preset: 'ts-jest/presets/js-with-babel',
setupFiles: [
'<rootDir>/pkg/rancher-desktop/utils/testUtils/setupElectron.ts',
],
testEnvironment: 'jsdom',
};