-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathjest.config.js
More file actions
18 lines (18 loc) · 784 Bytes
/
jest.config.js
File metadata and controls
18 lines (18 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)\/)"]
};