@nx/jest 16.4.0 → 16.5.0-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/jest",
3
- "version": "16.4.0",
3
+ "version": "16.5.0-beta.0",
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": {
@@ -36,9 +36,9 @@
36
36
  "dependencies": {
37
37
  "@jest/reporters": "^29.4.1",
38
38
  "@jest/test-result": "^29.4.1",
39
- "@nrwl/jest": "16.4.0",
40
- "@nx/devkit": "16.4.0",
41
- "@nx/js": "16.4.0",
39
+ "@nrwl/jest": "16.5.0-beta.0",
40
+ "@nx/devkit": "16.5.0-beta.0",
41
+ "@nx/js": "16.5.0-beta.0",
42
42
  "@phenomnomnominal/tsquery": "~5.0.1",
43
43
  "chalk": "^4.1.0",
44
44
  "dotenv": "~10.0.0",
@@ -53,5 +53,5 @@
53
53
  "access": "public"
54
54
  },
55
55
  "types": "./index.d.ts",
56
- "gitHead": "ae698a72748d9f33aa5395aeeaa7b7af436a1dc5"
56
+ "gitHead": "376d656cfc7f6390ff1cd6d9de348baf7bccbf33"
57
57
  }
@@ -40,7 +40,7 @@ function jestConfigParser(options, context, multiProjects = false) {
40
40
  // like 'jest-runner-groups' --group arg
41
41
  const schema = yield Promise.resolve().then(() => require('./schema.json'));
42
42
  const extraArgs = getExtraArgs(options, schema);
43
- const config = Object.assign(Object.assign({}, extraArgs), { $0: undefined, _: [], config: options.config, coverage: options.codeCoverage, bail: options.bail, ci: options.ci, color: options.color, detectOpenHandles: options.detectOpenHandles, logHeapUsage: options.logHeapUsage, detectLeaks: options.detectLeaks, json: options.json, maxWorkers: options.maxWorkers, onlyChanged: options.onlyChanged, changedSince: options.changedSince, outputFile: options.outputFile, passWithNoTests: options.passWithNoTests, runInBand: options.runInBand, showConfig: options.showConfig, silent: options.silent, testLocationInResults: options.testLocationInResults, testNamePattern: options.testNamePattern, testPathPattern: options.testPathPattern, testPathIgnorePatterns: options.testPathIgnorePatterns, testTimeout: options.testTimeout, colors: options.colors, verbose: options.verbose, testResultsProcessor: options.testResultsProcessor, updateSnapshot: options.updateSnapshot, useStderr: options.useStderr, watch: options.watch, watchAll: options.watchAll, randomize: options.randomize });
43
+ const config = Object.assign(Object.assign({}, extraArgs), { $0: undefined, _: [], config: options.config, coverage: options.codeCoverage, bail: options.bail, ci: options.ci, color: options.color, detectOpenHandles: options.detectOpenHandles, forceExit: options.forceExit, logHeapUsage: options.logHeapUsage, detectLeaks: options.detectLeaks, json: options.json, maxWorkers: options.maxWorkers, onlyChanged: options.onlyChanged, changedSince: options.changedSince, outputFile: options.outputFile, passWithNoTests: options.passWithNoTests, runInBand: options.runInBand, showConfig: options.showConfig, silent: options.silent, testLocationInResults: options.testLocationInResults, testNamePattern: options.testNamePattern, testPathPattern: options.testPathPattern, testPathIgnorePatterns: options.testPathIgnorePatterns, testTimeout: options.testTimeout, colors: options.colors, verbose: options.verbose, testResultsProcessor: options.testResultsProcessor, updateSnapshot: options.updateSnapshot, useStderr: options.useStderr, watch: options.watch, watchAll: options.watchAll, randomize: options.randomize });
44
44
  if (!multiProjects) {
45
45
  options.jestConfig = path.resolve(context.root, options.jestConfig);
46
46
  jestConfig = (yield (0, jest_config_1.readConfig)(config, options.jestConfig)).projectConfig;
@@ -15,6 +15,7 @@ export interface JestExecutorOptions {
15
15
  color?: boolean;
16
16
  clearCache?: boolean;
17
17
  findRelatedTests?: string;
18
+ forceExit?: boolean;
18
19
  json?: boolean;
19
20
  maxWorkers?: number | string;
20
21
  onlyChanged?: boolean;
@@ -90,6 +90,10 @@
90
90
  "description": "Find and run the tests that cover a comma separated list of source files that were passed in as arguments. (https://jestjs.io/docs/cli#--findrelatedtests-spaceseparatedlistofsourcefiles)",
91
91
  "type": "string"
92
92
  },
93
+ "forceExit": {
94
+ "description": "Force Jest to exit after all tests have completed running. This is useful when resources set up by test code cannot be adequately cleaned up.This feature is an escape-hatch. If Jest doesn't exit at the end of a test run, it means external resources are still being held on to or timers are still pending in your code. It is advised to tear down external resources after each test to make sure Jest can shut down cleanly. You can use --detectOpenHandles to help track it down.",
95
+ "type": "boolean"
96
+ },
93
97
  "json": {
94
98
  "description": "Prints the test results in `JSON`. This mode will send all other test output and user messages to `stderr`. (https://jestjs.io/docs/cli#--json)",
95
99
  "type": "boolean"