-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
26 lines (26 loc) · 1 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
module.exports = {
transform: {
'^.+\\.ts?$': ['ts-jest', { "compiler": "ttypescript" }],
'^.+\\.(js|jsx)$': [
'babel-jest', {
'presets': ['@babel/preset-env'],
"plugins": [
["@babel/plugin-transform-runtime"]
]
}]
},
testEnvironment: 'jsdom',
testRegex: '/tests/.*\\.(test|spec)?\\.(ts|tsx)$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
setupFiles: ["<rootDir>/tests/config.ts"],
collectCoverageFrom: ["**/src/**/*.{js,jsx,ts}", "!**/node_modules/**", "!**/vendor/**", "!**/src/styles.ts", "!**/src/fonts.ts", "!**/src/editor.ts"],
transformIgnorePatterns: ["node_modules\/(?!(lit|lit-element|lit-html|@lit)\/)"],
testPathIgnorePatterns: [
"tests/cards/sky-tonight.test.ts",
"tests/utils/checkConfig.test.ts"
],
coveragePathIgnorePatterns: [
"tests/cards/sky-tonight.test.ts",
"tests/cards/checkConfig.test.ts"
]
};