@taiga-ui/jest-config 0.250.0 → 0.252.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jest.config.d.ts +23 -23
- package/jest.config.js +30 -30
- package/package.json +1 -1
package/jest.config.d.ts
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
2
|
+
bail: number;
|
|
3
|
+
cacheDirectory: string;
|
|
4
|
+
collectCoverage: true;
|
|
5
|
+
collectCoverageFrom: string[];
|
|
6
|
+
coverageDirectory: string;
|
|
7
|
+
coveragePathIgnorePatterns: string[];
|
|
8
|
+
coverageReporters: ("clover" | "lcov")[];
|
|
9
|
+
extensionsToTreatAsEsm: string[];
|
|
10
|
+
maxConcurrency: number;
|
|
11
|
+
maxWorkers: number;
|
|
12
|
+
moduleNameMapper: {
|
|
13
|
+
[key: string]: string | string[];
|
|
14
|
+
} | undefined;
|
|
15
|
+
modulePathIgnorePatterns: string[];
|
|
16
|
+
passWithNoTests: true;
|
|
3
17
|
preset: string;
|
|
4
|
-
|
|
18
|
+
reporters: string[];
|
|
19
|
+
rootDir: string;
|
|
5
20
|
setupFilesAfterEnv: string[];
|
|
6
|
-
|
|
21
|
+
testEnvironment: string;
|
|
22
|
+
testMatch: string[];
|
|
23
|
+
testPathIgnorePatterns: string[];
|
|
7
24
|
transform: {
|
|
8
25
|
'^.+\\.(ts|js|mjs|html|svg)$': [string, {
|
|
9
|
-
tsconfig: string;
|
|
10
|
-
stringifyContentPathRegex: string;
|
|
11
|
-
isolatedModules: true;
|
|
12
26
|
diagnostics: true;
|
|
27
|
+
isolatedModules: true;
|
|
28
|
+
stringifyContentPathRegex: string;
|
|
29
|
+
tsconfig: string;
|
|
13
30
|
}];
|
|
14
31
|
};
|
|
15
32
|
transformIgnorePatterns: string[];
|
|
16
|
-
testMatch: string[];
|
|
17
|
-
testPathIgnorePatterns: string[];
|
|
18
|
-
coverageDirectory: string;
|
|
19
|
-
collectCoverageFrom: string[];
|
|
20
|
-
coveragePathIgnorePatterns: string[];
|
|
21
|
-
moduleNameMapper: {
|
|
22
|
-
[key: string]: string | string[];
|
|
23
|
-
} | undefined;
|
|
24
|
-
modulePathIgnorePatterns: string[];
|
|
25
|
-
coverageReporters: ("clover" | "lcov")[];
|
|
26
|
-
cacheDirectory: string;
|
|
27
|
-
maxConcurrency: number;
|
|
28
|
-
maxWorkers: number;
|
|
29
33
|
verbose: boolean;
|
|
30
|
-
bail: number;
|
|
31
|
-
reporters: string[];
|
|
32
|
-
passWithNoTests: true;
|
|
33
|
-
collectCoverage: true;
|
|
34
34
|
};
|
|
35
35
|
export default _default;
|
package/jest.config.js
CHANGED
|
@@ -9,50 +9,50 @@ process.env.TS_JEST_DISABLE_VER_CHECKER = 'true';
|
|
|
9
9
|
const { compilerOptions } = require((0, node_path_1.resolve)(process.cwd(), 'tsconfig.json'));
|
|
10
10
|
const maxParallel = require('node:os').cpus().length / 2;
|
|
11
11
|
exports.default = {
|
|
12
|
-
|
|
12
|
+
bail: 1,
|
|
13
|
+
cacheDirectory: '<rootDir>/node_modules/.cache/jest',
|
|
14
|
+
collectCoverage: true,
|
|
15
|
+
collectCoverageFrom: ['<rootDir>/**/*.ts'],
|
|
16
|
+
coverageDirectory: '<rootDir>/coverage',
|
|
17
|
+
coveragePathIgnorePatterns: ['node_modules', 'schematics', '.spec.ts', '.cy.ts'],
|
|
18
|
+
coverageReporters: ['lcov', 'clover'],
|
|
19
|
+
extensionsToTreatAsEsm: ['.ts'],
|
|
20
|
+
maxConcurrency: maxParallel,
|
|
21
|
+
maxWorkers: maxParallel,
|
|
22
|
+
moduleNameMapper: (0, ts_jest_1.pathsToModuleNameMapper)(compilerOptions.paths, {
|
|
23
|
+
prefix: `<rootDir>/${compilerOptions.baseUrl}/`
|
|
24
|
+
.replaceAll('./', '/')
|
|
25
|
+
.replaceAll(/\/\/+/g, '/'),
|
|
26
|
+
}),
|
|
27
|
+
modulePathIgnorePatterns: ['.cache', 'dist', '<rootDir>/dist/'],
|
|
28
|
+
passWithNoTests: true,
|
|
13
29
|
preset: 'jest-preset-angular',
|
|
14
|
-
|
|
30
|
+
reporters: ['default'],
|
|
31
|
+
rootDir: process.cwd(),
|
|
15
32
|
setupFilesAfterEnv: [
|
|
16
33
|
(0, node_path_1.resolve)(process.cwd(), './node_modules/@taiga-ui/testing/setup-jest/index.ts'),
|
|
17
34
|
],
|
|
18
|
-
|
|
35
|
+
testEnvironment: 'jsdom',
|
|
36
|
+
testMatch: ['<rootDir>/projects/**/*.spec.ts'],
|
|
37
|
+
testPathIgnorePatterns: [
|
|
38
|
+
'/cypress/',
|
|
39
|
+
'/playwright/',
|
|
40
|
+
'/node_modules/',
|
|
41
|
+
'.pw.spec.ts',
|
|
42
|
+
],
|
|
19
43
|
transform: {
|
|
20
44
|
'^.+\\.(ts|js|mjs|html|svg)$': [
|
|
21
45
|
require.resolve('jest-preset-angular'),
|
|
22
46
|
{
|
|
23
|
-
tsconfig: (0, node_path_1.resolve)(process.cwd(), 'tsconfig.spec.json'),
|
|
24
|
-
stringifyContentPathRegex: String.raw `\.html$`,
|
|
25
|
-
isolatedModules: true,
|
|
26
47
|
diagnostics: true,
|
|
48
|
+
isolatedModules: true,
|
|
49
|
+
stringifyContentPathRegex: String.raw `\.html$`,
|
|
50
|
+
tsconfig: (0, node_path_1.resolve)(process.cwd(), 'tsconfig.spec.json'),
|
|
27
51
|
},
|
|
28
52
|
],
|
|
29
53
|
},
|
|
30
54
|
transformIgnorePatterns: [
|
|
31
55
|
'node_modules/(?!@angular|rxjs|ngx-highlightjs|@maskito|@ng-web-apis|@taiga-ui).+',
|
|
32
56
|
],
|
|
33
|
-
testMatch: ['<rootDir>/projects/**/*.spec.ts'],
|
|
34
|
-
testPathIgnorePatterns: [
|
|
35
|
-
'/cypress/',
|
|
36
|
-
'/playwright/',
|
|
37
|
-
'/node_modules/',
|
|
38
|
-
'.pw.spec.ts',
|
|
39
|
-
],
|
|
40
|
-
coverageDirectory: '<rootDir>/coverage',
|
|
41
|
-
collectCoverageFrom: ['<rootDir>/**/*.ts'],
|
|
42
|
-
coveragePathIgnorePatterns: ['node_modules', 'schematics', '.spec.ts', '.cy.ts'],
|
|
43
|
-
moduleNameMapper: (0, ts_jest_1.pathsToModuleNameMapper)(compilerOptions.paths, {
|
|
44
|
-
prefix: `<rootDir>/${compilerOptions.baseUrl}/`
|
|
45
|
-
.replaceAll('./', '/')
|
|
46
|
-
.replaceAll(/\/\/+/g, '/'),
|
|
47
|
-
}),
|
|
48
|
-
modulePathIgnorePatterns: ['.cache', 'dist', '<rootDir>/dist/'],
|
|
49
|
-
coverageReporters: ['lcov', 'clover'],
|
|
50
|
-
cacheDirectory: '<rootDir>/node_modules/.cache/jest',
|
|
51
|
-
maxConcurrency: maxParallel,
|
|
52
|
-
maxWorkers: maxParallel,
|
|
53
57
|
verbose: !process.env.CI,
|
|
54
|
-
bail: 1,
|
|
55
|
-
reporters: ['default'],
|
|
56
|
-
passWithNoTests: true,
|
|
57
|
-
collectCoverage: true,
|
|
58
58
|
};
|