|
1 |
| -const { cli } = require('webpack'); |
| 1 | +const { cli } = require("webpack"); |
2 | 2 |
|
3 | 3 | // Ignore core-flags test for webpack@4
|
4 | 4 | const ignorePattern =
|
5 |
| - typeof cli !== 'undefined' ? ['<rootDir>/node_modules/'] : ['<rootDir>/node_modules/', '<rootDir>/test/build/core-flags']; |
| 5 | + typeof cli !== "undefined" |
| 6 | + ? ["<rootDir>/node_modules/"] |
| 7 | + : ["<rootDir>/node_modules/", "<rootDir>/test/build/core-flags"]; |
6 | 8 |
|
7 | 9 | module.exports = {
|
8 | 10 | testPathIgnorePatterns: ignorePattern,
|
9 |
| - testEnvironment: 'node', |
| 11 | + testEnvironment: "node", |
10 | 12 | collectCoverage: true,
|
11 |
| - coverageDirectory: '.nyc_output', |
12 |
| - coverageReporters: ['json'], |
13 |
| - coveragePathIgnorePatterns: ['<rootDir>/test/'], |
| 13 | + coverageDirectory: ".nyc_output", |
| 14 | + coverageReporters: ["json"], |
| 15 | + coveragePathIgnorePatterns: ["<rootDir>/test/"], |
14 | 16 | transform: {
|
15 |
| - '^.+\\.(ts)?$': 'ts-jest', |
| 17 | + "^.+\\.(ts)?$": "ts-jest", |
16 | 18 | },
|
17 |
| - testRegex: ['/test/.*\\.(test.js|test.ts)$'], |
18 |
| - moduleFileExtensions: ['ts', 'js', 'json'], |
19 |
| - snapshotResolver: '<rootDir>/scripts/snapshotResolver.js', |
20 |
| - watchPlugins: ['jest-watch-typeahead/filename', 'jest-watch-typeahead/testname'], |
21 |
| - setupFilesAfterEnv: ['<rootDir>/setupTest.js'], |
22 |
| - globalTeardown: '<rootDir>/scripts/cleanupTest.js', |
23 |
| - globalSetup: '<rootDir>/scripts/globalSetup.js', |
24 |
| - modulePathIgnorePatterns: ['<rootDir>/test/loader/test-loader', '<rootDir>/test/plugin/test-plugin'], |
| 19 | + testRegex: ["/test/.*\\.(test.js|test.ts)$"], |
| 20 | + moduleFileExtensions: ["ts", "js", "json"], |
| 21 | + snapshotResolver: "<rootDir>/scripts/snapshotResolver.js", |
| 22 | + watchPlugins: ["jest-watch-typeahead/filename", "jest-watch-typeahead/testname"], |
| 23 | + setupFilesAfterEnv: ["<rootDir>/setupTest.js"], |
| 24 | + globalTeardown: "<rootDir>/scripts/cleanupTest.js", |
| 25 | + globalSetup: "<rootDir>/scripts/globalSetup.js", |
| 26 | + modulePathIgnorePatterns: [ |
| 27 | + "<rootDir>/test/loader/test-loader", |
| 28 | + "<rootDir>/test/plugin/test-plugin", |
| 29 | + ], |
25 | 30 | };
|
0 commit comments