@nx/jest 16.0.0-beta.1
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/CHANGELOG.md +8 -0
- package/LICENSE +22 -0
- package/README.md +63 -0
- package/executors.json +17 -0
- package/generators.json +34 -0
- package/index.d.ts +5 -0
- package/index.js +16 -0
- package/index.js.map +1 -0
- package/migrations.json +275 -0
- package/package.json +57 -0
- package/plugins/resolver.d.ts +1 -0
- package/plugins/resolver.js +56 -0
- package/plugins/resolver.js.map +1 -0
- package/preset/index.d.ts +2 -0
- package/preset/index.js +5 -0
- package/preset/index.js.map +1 -0
- package/preset/jest-preset.d.ts +2 -0
- package/preset/jest-preset.js +34 -0
- package/preset/jest-preset.js.map +1 -0
- package/src/executors/jest/compat.d.ts +2 -0
- package/src/executors/jest/compat.js +6 -0
- package/src/executors/jest/compat.js.map +1 -0
- package/src/executors/jest/jest.impl.d.ts +11 -0
- package/src/executors/jest/jest.impl.js +153 -0
- package/src/executors/jest/jest.impl.js.map +1 -0
- package/src/executors/jest/schema.d.ts +42 -0
- package/src/executors/jest/schema.json +218 -0
- package/src/executors/jest/summary.d.ts +7 -0
- package/src/executors/jest/summary.js +155 -0
- package/src/executors/jest/summary.js.map +1 -0
- package/src/generators/init/init.d.ts +5 -0
- package/src/generators/init/init.js +169 -0
- package/src/generators/init/init.js.map +1 -0
- package/src/generators/init/schema.d.ts +11 -0
- package/src/generators/init/schema.json +42 -0
- package/src/generators/jest-project/files/jest.config.ts__tmpl__ +16 -0
- package/src/generators/jest-project/files/src/test-setup.ts__tmpl__ +0 -0
- package/src/generators/jest-project/files/tsconfig.spec.json__tmpl__ +21 -0
- package/src/generators/jest-project/files-angular/jest.config.ts__tmpl__ +27 -0
- package/src/generators/jest-project/files-angular/src/test-setup.ts__tmpl__ +1 -0
- package/src/generators/jest-project/files-angular/tsconfig.spec.json__tmpl__ +22 -0
- package/src/generators/jest-project/jest-project.d.ts +4 -0
- package/src/generators/jest-project/jest-project.js +55 -0
- package/src/generators/jest-project/jest-project.js.map +1 -0
- package/src/generators/jest-project/lib/check-for-test-target.d.ts +3 -0
- package/src/generators/jest-project/lib/check-for-test-target.js +13 -0
- package/src/generators/jest-project/lib/check-for-test-target.js.map +1 -0
- package/src/generators/jest-project/lib/create-files.d.ts +3 -0
- package/src/generators/jest-project/lib/create-files.js +44 -0
- package/src/generators/jest-project/lib/create-files.js.map +1 -0
- package/src/generators/jest-project/lib/update-jestconfig.d.ts +3 -0
- package/src/generators/jest-project/lib/update-jestconfig.js +22 -0
- package/src/generators/jest-project/lib/update-jestconfig.js.map +1 -0
- package/src/generators/jest-project/lib/update-tsconfig.d.ts +3 -0
- package/src/generators/jest-project/lib/update-tsconfig.js +22 -0
- package/src/generators/jest-project/lib/update-tsconfig.js.map +1 -0
- package/src/generators/jest-project/lib/update-workspace.d.ts +3 -0
- package/src/generators/jest-project/lib/update-workspace.js +37 -0
- package/src/generators/jest-project/lib/update-workspace.js.map +1 -0
- package/src/generators/jest-project/schema.d.ts +23 -0
- package/src/generators/jest-project/schema.json +80 -0
- package/src/migrations/update-12-1-2/update-jest-preset-angular.d.ts +1 -0
- package/src/migrations/update-12-1-2/update-jest-preset-angular.js +55 -0
- package/src/migrations/update-12-1-2/update-jest-preset-angular.js.map +1 -0
- package/src/migrations/update-12-1-2/update-ts-jest.d.ts +2 -0
- package/src/migrations/update-12-1-2/update-ts-jest.js +36 -0
- package/src/migrations/update-12-1-2/update-ts-jest.js.map +1 -0
- package/src/migrations/update-12-4-0/add-test-environment-for-node.d.ts +2 -0
- package/src/migrations/update-12-4-0/add-test-environment-for-node.js +38 -0
- package/src/migrations/update-12-4-0/add-test-environment-for-node.js.map +1 -0
- package/src/migrations/update-12-4-0/update-jest-preset-angular.d.ts +25 -0
- package/src/migrations/update-12-4-0/update-jest-preset-angular.js +89 -0
- package/src/migrations/update-12-4-0/update-jest-preset-angular.js.map +1 -0
- package/src/migrations/update-12-6-0/update-base-jest-config.d.ts +2 -0
- package/src/migrations/update-12-6-0/update-base-jest-config.js +43 -0
- package/src/migrations/update-12-6-0/update-base-jest-config.js.map +1 -0
- package/src/migrations/update-13-1-2/update-tsconfigs-for-tests.d.ts +2 -0
- package/src/migrations/update-13-1-2/update-tsconfigs-for-tests.js +60 -0
- package/src/migrations/update-13-1-2/update-tsconfigs-for-tests.js.map +1 -0
- package/src/migrations/update-13-4-4/add-missing-root-babel-config.d.ts +2 -0
- package/src/migrations/update-13-4-4/add-missing-root-babel-config.js +43 -0
- package/src/migrations/update-13-4-4/add-missing-root-babel-config.js.map +1 -0
- package/src/migrations/update-14-0-0/update-jest-config-ext.d.ts +3 -0
- package/src/migrations/update-14-0-0/update-jest-config-ext.js +115 -0
- package/src/migrations/update-14-0-0/update-jest-config-ext.js.map +1 -0
- package/src/migrations/update-14-1-5/update-exports-jest-config.d.ts +7 -0
- package/src/migrations/update-14-1-5/update-exports-jest-config.js +66 -0
- package/src/migrations/update-14-1-5/update-exports-jest-config.js.map +1 -0
- package/src/migrations/update-14-6-0/update-configs-jest-28.d.ts +5 -0
- package/src/migrations/update-14-6-0/update-configs-jest-28.js +82 -0
- package/src/migrations/update-14-6-0/update-configs-jest-28.js.map +1 -0
- package/src/migrations/update-14-6-0/update-tests-jest-28.d.ts +24 -0
- package/src/migrations/update-14-6-0/update-tests-jest-28.js +158 -0
- package/src/migrations/update-14-6-0/update-tests-jest-28.js.map +1 -0
- package/src/migrations/update-15-0-0/add-jest-inputs.d.ts +2 -0
- package/src/migrations/update-15-0-0/add-jest-inputs.js +47 -0
- package/src/migrations/update-15-0-0/add-jest-inputs.js.map +1 -0
- package/src/migrations/update-15-8-0/update-configs-jest-29.d.ts +3 -0
- package/src/migrations/update-15-8-0/update-configs-jest-29.js +153 -0
- package/src/migrations/update-15-8-0/update-configs-jest-29.js.map +1 -0
- package/src/migrations/update-15-8-0/update-tests-jest-29.d.ts +5 -0
- package/src/migrations/update-15-8-0/update-tests-jest-29.js +64 -0
- package/src/migrations/update-15-8-0/update-tests-jest-29.js.map +1 -0
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.d.ts +2 -0
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js +13 -0
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js.map +1 -0
- package/src/utils/ast-utils.d.ts +9 -0
- package/src/utils/ast-utils.js +33 -0
- package/src/utils/ast-utils.js.map +1 -0
- package/src/utils/config/find-root-jest-files.d.ts +3 -0
- package/src/utils/config/find-root-jest-files.js +21 -0
- package/src/utils/config/find-root-jest-files.js.map +1 -0
- package/src/utils/config/functions.d.ts +17 -0
- package/src/utils/config/functions.js +214 -0
- package/src/utils/config/functions.js.map +1 -0
- package/src/utils/config/get-jest-projects.d.ts +19 -0
- package/src/utils/config/get-jest-projects.js +64 -0
- package/src/utils/config/get-jest-projects.js.map +1 -0
- package/src/utils/config/update-config.d.ts +20 -0
- package/src/utils/config/update-config.js +84 -0
- package/src/utils/config/update-config.js.map +1 -0
- package/src/utils/versions.d.ts +9 -0
- package/src/utils/versions.js +13 -0
- package/src/utils/versions.js.map +1 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getNestedJestProjects = exports.getJestProjects = void 0;
|
|
4
|
+
const path_1 = require("path");
|
|
5
|
+
const file_utils_1 = require("nx/src/project-graph/file-utils");
|
|
6
|
+
const JEST_RUNNER_TOKEN = '@nrwl/jest:jest';
|
|
7
|
+
function getJestConfigProjectPath(projectJestConfigPath) {
|
|
8
|
+
return (0, path_1.join)('<rootDir>', projectJestConfigPath);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Get a list of paths to all the jest config files
|
|
12
|
+
* using the Nx Jest executor.
|
|
13
|
+
*
|
|
14
|
+
* This is used to configure Jest multi-project support.
|
|
15
|
+
*
|
|
16
|
+
* To add a project not using the Nx Jest executor:
|
|
17
|
+
* export default {
|
|
18
|
+
* projects: [...getJestProjects(), '<rootDir>/path/to/jest.config.ts'];
|
|
19
|
+
* }
|
|
20
|
+
*
|
|
21
|
+
**/
|
|
22
|
+
function getJestProjects() {
|
|
23
|
+
var _a;
|
|
24
|
+
const ws = (0, file_utils_1.readWorkspaceConfig)({
|
|
25
|
+
format: 'nx',
|
|
26
|
+
});
|
|
27
|
+
const jestConfigurationSet = new Set();
|
|
28
|
+
for (const projectConfig of Object.values(ws.projects)) {
|
|
29
|
+
if (!projectConfig.targets) {
|
|
30
|
+
continue;
|
|
31
|
+
}
|
|
32
|
+
for (const targetConfiguration of Object.values(projectConfig.targets)) {
|
|
33
|
+
if (targetConfiguration.executor !== JEST_RUNNER_TOKEN) {
|
|
34
|
+
continue;
|
|
35
|
+
}
|
|
36
|
+
if ((_a = targetConfiguration.options) === null || _a === void 0 ? void 0 : _a.jestConfig) {
|
|
37
|
+
jestConfigurationSet.add(getJestConfigProjectPath(targetConfiguration.options.jestConfig));
|
|
38
|
+
}
|
|
39
|
+
if (targetConfiguration.configurations) {
|
|
40
|
+
for (const configurationObject of Object.values(targetConfiguration.configurations)) {
|
|
41
|
+
if (configurationObject.jestConfig) {
|
|
42
|
+
jestConfigurationSet.add(getJestConfigProjectPath(configurationObject.jestConfig));
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return Array.from(jestConfigurationSet);
|
|
49
|
+
}
|
|
50
|
+
exports.getJestProjects = getJestProjects;
|
|
51
|
+
/**
|
|
52
|
+
* a list of nested projects that have jest configured
|
|
53
|
+
* to be used in the testPathIgnorePatterns property of a given jest config
|
|
54
|
+
* https://jestjs.io/docs/configuration#testpathignorepatterns-arraystring
|
|
55
|
+
* */
|
|
56
|
+
function getNestedJestProjects() {
|
|
57
|
+
// TODO(caleb): get current project path and list of all projects and their rootDir
|
|
58
|
+
// return a list of all projects that are nested in the current projects path
|
|
59
|
+
// always include node_modules as that's the default
|
|
60
|
+
const allProjects = getJestProjects();
|
|
61
|
+
return ['/node_modules/'];
|
|
62
|
+
}
|
|
63
|
+
exports.getNestedJestProjects = getNestedJestProjects;
|
|
64
|
+
//# sourceMappingURL=get-jest-projects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-jest-projects.js","sourceRoot":"","sources":["../../../../../../packages/jest/src/utils/config/get-jest-projects.ts"],"names":[],"mappings":";;;AAAA,+BAA4B;AAE5B,gEAAsE;AAEtE,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;AAE5C,SAAS,wBAAwB,CAAC,qBAA6B;IAC7D,OAAO,IAAA,WAAI,EAAC,WAAW,EAAE,qBAAqB,CAAC,CAAC;AAClD,CAAC;AAED;;;;;;;;;;;IAWI;AACJ,SAAgB,eAAe;;IAC7B,MAAM,EAAE,GAAG,IAAA,gCAAmB,EAAC;QAC7B,MAAM,EAAE,IAAI;KACb,CAA2B,CAAC;IAC7B,MAAM,oBAAoB,GAAG,IAAI,GAAG,EAAU,CAAC;IAC/C,KAAK,MAAM,aAAa,IAAI,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE;QACtD,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE;YAC1B,SAAS;SACV;QACD,KAAK,MAAM,mBAAmB,IAAI,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE;YACtE,IAAI,mBAAmB,CAAC,QAAQ,KAAK,iBAAiB,EAAE;gBACtD,SAAS;aACV;YACD,IAAI,MAAA,mBAAmB,CAAC,OAAO,0CAAE,UAAU,EAAE;gBAC3C,oBAAoB,CAAC,GAAG,CACtB,wBAAwB,CAAC,mBAAmB,CAAC,OAAO,CAAC,UAAU,CAAC,CACjE,CAAC;aACH;YACD,IAAI,mBAAmB,CAAC,cAAc,EAAE;gBACtC,KAAK,MAAM,mBAAmB,IAAI,MAAM,CAAC,MAAM,CAC7C,mBAAmB,CAAC,cAAc,CACnC,EAAE;oBACD,IAAI,mBAAmB,CAAC,UAAU,EAAE;wBAClC,oBAAoB,CAAC,GAAG,CACtB,wBAAwB,CAAC,mBAAmB,CAAC,UAAU,CAAC,CACzD,CAAC;qBACH;iBACF;aACF;SACF;KACF;IACD,OAAO,KAAK,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;AAC1C,CAAC;AAhCD,0CAgCC;AAED;;;;KAIK;AACL,SAAgB,qBAAqB;IACnC,mFAAmF;IACnF,6EAA6E;IAC7E,oDAAoD;IAEpD,MAAM,WAAW,GAAG,eAAe,EAAE,CAAC;IACtC,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAC5B,CAAC;AAPD,sDAOC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Tree } from '@nx/devkit';
|
|
2
|
+
/**
|
|
3
|
+
* Add a property to the jest config
|
|
4
|
+
* @param host
|
|
5
|
+
* @param path - path to the jest config file
|
|
6
|
+
* @param propertyName - Property to update. Can be dot delimited or an array to access deeply nested properties
|
|
7
|
+
* @param value
|
|
8
|
+
* @param options - set `valueAsString` option to true if the `value` being passed represents a string of the code that should be associated with the `propertyName`
|
|
9
|
+
*/
|
|
10
|
+
export declare function addPropertyToJestConfig(host: Tree, path: string, propertyName: string | string[], value: unknown, options?: {
|
|
11
|
+
valueAsString: boolean;
|
|
12
|
+
}): void;
|
|
13
|
+
/**
|
|
14
|
+
* Remove a property value from the jest config
|
|
15
|
+
* @param host
|
|
16
|
+
* @param path
|
|
17
|
+
* @param propertyName - Property to remove. Can be dot delimited or an array to access deeply nested properties
|
|
18
|
+
*/
|
|
19
|
+
export declare function removePropertyFromJestConfig(host: Tree, path: string, propertyName: string | string[]): void;
|
|
20
|
+
export declare function addImportStatementToJestConfig(host: Tree, path: string, importStatement: string): void;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addImportStatementToJestConfig = exports.removePropertyFromJestConfig = exports.addPropertyToJestConfig = void 0;
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
const functions_1 = require("./functions");
|
|
6
|
+
/**
|
|
7
|
+
* Add a property to the jest config
|
|
8
|
+
* @param host
|
|
9
|
+
* @param path - path to the jest config file
|
|
10
|
+
* @param propertyName - Property to update. Can be dot delimited or an array to access deeply nested properties
|
|
11
|
+
* @param value
|
|
12
|
+
* @param options - set `valueAsString` option to true if the `value` being passed represents a string of the code that should be associated with the `propertyName`
|
|
13
|
+
*/
|
|
14
|
+
function addPropertyToJestConfig(host, path, propertyName, value, options = { valueAsString: false }) {
|
|
15
|
+
if (!host.exists(path)) {
|
|
16
|
+
throw new Error(`Cannot find '${path}' in your workspace.`);
|
|
17
|
+
}
|
|
18
|
+
const { propertyString, properties } = parsePropertyName(propertyName);
|
|
19
|
+
try {
|
|
20
|
+
const configObject = (0, functions_1.jestConfigObjectAst)(host.read(path, 'utf-8'));
|
|
21
|
+
(0, functions_1.addOrUpdateProperty)(host, configObject, properties, options.valueAsString ? value : JSON.stringify(value), path);
|
|
22
|
+
}
|
|
23
|
+
catch (e) {
|
|
24
|
+
devkit_1.logger.info(`NX Please manually update ${path}`);
|
|
25
|
+
devkit_1.logger.warn(`Could not automatically add the following property to ${path}:`);
|
|
26
|
+
devkit_1.logger.warn(`${propertyString}: ${JSON.stringify(value)}`);
|
|
27
|
+
devkit_1.logger.warn(`Error: ${e.message}`);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.addPropertyToJestConfig = addPropertyToJestConfig;
|
|
31
|
+
/**
|
|
32
|
+
* Remove a property value from the jest config
|
|
33
|
+
* @param host
|
|
34
|
+
* @param path
|
|
35
|
+
* @param propertyName - Property to remove. Can be dot delimited or an array to access deeply nested properties
|
|
36
|
+
*/
|
|
37
|
+
function removePropertyFromJestConfig(host, path, propertyName) {
|
|
38
|
+
if (!host.exists(path)) {
|
|
39
|
+
throw new Error(`Cannot find '${path}' in your workspace.`);
|
|
40
|
+
}
|
|
41
|
+
const { propertyString, properties } = parsePropertyName(propertyName);
|
|
42
|
+
try {
|
|
43
|
+
const configObject = (0, functions_1.jestConfigObjectAst)(host.read(path, 'utf-8'));
|
|
44
|
+
const propertyAssignment = (0, functions_1.removeProperty)(configObject, properties);
|
|
45
|
+
if (propertyAssignment) {
|
|
46
|
+
const file = host.read(path, 'utf-8');
|
|
47
|
+
const commaNeeded = file[propertyAssignment.end] === ',';
|
|
48
|
+
const updatedFile = (0, devkit_1.applyChangesToString)(file, [
|
|
49
|
+
{
|
|
50
|
+
type: devkit_1.ChangeType.Delete,
|
|
51
|
+
start: propertyAssignment.getStart(),
|
|
52
|
+
length: `${propertyAssignment.getText()}${commaNeeded ? ',' : ''}`
|
|
53
|
+
.length,
|
|
54
|
+
},
|
|
55
|
+
]);
|
|
56
|
+
host.write(path, updatedFile);
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
catch (e) {
|
|
61
|
+
devkit_1.logger.info(`NX Please manually update ${path}`);
|
|
62
|
+
devkit_1.logger.warn(`Could not automatically remove the '${propertyString}' property from ${path}:`);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.removePropertyFromJestConfig = removePropertyFromJestConfig;
|
|
66
|
+
function parsePropertyName(propertyName) {
|
|
67
|
+
return {
|
|
68
|
+
properties: Array.isArray(propertyName)
|
|
69
|
+
? propertyName
|
|
70
|
+
: propertyName.split('.'),
|
|
71
|
+
propertyString: Array.isArray(propertyName)
|
|
72
|
+
? propertyName.join('.')
|
|
73
|
+
: propertyName,
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
function addImportStatementToJestConfig(host, path, importStatement) {
|
|
77
|
+
const currentContents = host.read(path, 'utf-8');
|
|
78
|
+
const newContents = `${importStatement}
|
|
79
|
+
|
|
80
|
+
${currentContents}`;
|
|
81
|
+
host.write(path, newContents);
|
|
82
|
+
}
|
|
83
|
+
exports.addImportStatementToJestConfig = addImportStatementToJestConfig;
|
|
84
|
+
//# sourceMappingURL=update-config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-config.js","sourceRoot":"","sources":["../../../../../../packages/jest/src/utils/config/update-config.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const nxVersion: any;
|
|
2
|
+
export declare const jestVersion = "^29.4.1";
|
|
3
|
+
export declare const babelJestVersion = "^29.4.1";
|
|
4
|
+
export declare const jestTypesVersion = "^29.4.0";
|
|
5
|
+
export declare const tsJestVersion = "^29.0.5";
|
|
6
|
+
export declare const tslibVersion = "^2.3.0";
|
|
7
|
+
export declare const swcJestVersion = "0.2.20";
|
|
8
|
+
export declare const typesNodeVersion = "16.11.7";
|
|
9
|
+
export declare const tsNodeVersion = "10.9.1";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.tsNodeVersion = exports.typesNodeVersion = exports.swcJestVersion = exports.tslibVersion = exports.tsJestVersion = exports.jestTypesVersion = exports.babelJestVersion = exports.jestVersion = exports.nxVersion = void 0;
|
|
4
|
+
exports.nxVersion = require('../../package.json').version;
|
|
5
|
+
exports.jestVersion = '^29.4.1';
|
|
6
|
+
exports.babelJestVersion = '^29.4.1';
|
|
7
|
+
exports.jestTypesVersion = '^29.4.0';
|
|
8
|
+
exports.tsJestVersion = '^29.0.5';
|
|
9
|
+
exports.tslibVersion = '^2.3.0';
|
|
10
|
+
exports.swcJestVersion = '0.2.20';
|
|
11
|
+
exports.typesNodeVersion = '16.11.7';
|
|
12
|
+
exports.tsNodeVersion = '10.9.1';
|
|
13
|
+
//# sourceMappingURL=versions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../../../packages/jest/src/utils/versions.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC;AAClD,QAAA,WAAW,GAAG,SAAS,CAAC;AACxB,QAAA,gBAAgB,GAAG,SAAS,CAAC;AAC7B,QAAA,gBAAgB,GAAG,SAAS,CAAC;AAC7B,QAAA,aAAa,GAAG,SAAS,CAAC;AAC1B,QAAA,YAAY,GAAG,QAAQ,CAAC;AACxB,QAAA,cAAc,GAAG,QAAQ,CAAC;AAC1B,QAAA,gBAAgB,GAAG,SAAS,CAAC;AAC7B,QAAA,aAAa,GAAG,QAAQ,CAAC"}
|