@nx/jest 20.8.0-beta.0 → 20.8.0-beta.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/jest",
3
- "version": "20.8.0-beta.0",
3
+ "version": "20.8.0-beta.2",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Jest contains executors and generators allowing your workspace to use the powerful Jest testing capabilities.",
6
6
  "repository": {
@@ -37,8 +37,8 @@
37
37
  "dependencies": {
38
38
  "@jest/reporters": "^29.4.1",
39
39
  "@jest/test-result": "^29.4.1",
40
- "@nx/devkit": "20.8.0-beta.0",
41
- "@nx/js": "20.8.0-beta.0",
40
+ "@nx/devkit": "20.8.0-beta.2",
41
+ "@nx/js": "20.8.0-beta.2",
42
42
  "@phenomnomnominal/tsquery": "~5.0.1",
43
43
  "identity-obj-proxy": "3.0.0",
44
44
  "jest-config": "^29.4.1",
@@ -20,6 +20,7 @@ async function jestExecutor(options, context) {
20
20
  process.env['TS_NODE_COMPILER_OPTIONS'] = JSON.stringify({
21
21
  ...(existingValue ? JSON.parse(existingValue) : {}),
22
22
  moduleResolution: 'Node10',
23
+ module: 'commonjs',
23
24
  customConditions: null,
24
25
  });
25
26
  const config = await parseJestConfig(options, context);
@@ -124,12 +124,9 @@ async function buildJestTargets(configFilePath, projectRoot, options, context, p
124
124
  const rawConfig = await (0, config_utils_1.loadConfigFile)(absConfigFilePath);
125
125
  const targets = {};
126
126
  const namedInputs = (0, get_named_inputs_1.getNamedInputs)(projectRoot, context);
127
- const existingTsNodeCompilerOptions = process.env['TS_NODE_COMPILER_OPTIONS'];
128
127
  const tsNodeCompilerOptions = JSON.stringify({
129
- ...(existingTsNodeCompilerOptions
130
- ? JSON.parse(existingTsNodeCompilerOptions)
131
- : {}),
132
128
  moduleResolution: 'node10',
129
+ module: 'commonjs',
133
130
  customConditions: null,
134
131
  });
135
132
  const target = (targets[options.targetName] = {