-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjest.config.js
More file actions
31 lines (24 loc) · 1.01 KB
/
jest.config.js
File metadata and controls
31 lines (24 loc) · 1.01 KB
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
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
module.exports = {
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(ts|js)$',
moduleFileExtensions: ['ts', 'js'],
preset: 'ts-jest/presets/js-with-babel',
// Automatically clear mock calls and instances between every test
clearMocks: true,
// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
modulePathIgnorePatterns: [
'vendor/handlebars.js/components/',
'vendor/handlebars.js/dist/',
],
// The test environment that will be used for testing
testEnvironment: 'node',
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
testPathIgnorePatterns: ['/node_modules/', 'vendor/'],
watchPlugins: [
'jest-watch-typeahead/testname',
'jest-watch-typeahead/filename',
'./test/jsonnet-watch-plugin',
'./test/webpack-watch-plugin',
],
};