diff --git a/docs/generated/packages/jest/executors/jest.json b/docs/generated/packages/jest/executors/jest.json index 9db6ae9442a2c0..21f6d2d65ba10b 100644 --- a/docs/generated/packages/jest/executors/jest.json +++ b/docs/generated/packages/jest/executors/jest.json @@ -107,6 +107,10 @@ "description": "Will not fail if no tests are found (for example while using `--testPathPattern`.) (https://jestjs.io/docs/cli#--passwithnotests)", "type": "boolean" }, + "randomize": { + "description": "Shuffle the order of the tests within a file. The shuffling is based on the seed. This option is only supported using the default jest-circus test runner.", + "type": "boolean" + }, "runInBand": { "alias": "i", "description": "Run all tests serially in the current process (rather than creating a worker pool of child processes that run tests). This is sometimes useful for debugging, but such use cases are pretty rare. Useful for CI. (https://jestjs.io/docs/cli#--runinband)", diff --git a/packages/jest/src/executors/jest/jest.impl.ts b/packages/jest/src/executors/jest/jest.impl.ts index 310ff34516720a..3f470d38224982 100644 --- a/packages/jest/src/executors/jest/jest.impl.ts +++ b/packages/jest/src/executors/jest/jest.impl.ts @@ -94,6 +94,7 @@ export async function jestConfigParser( useStderr: options.useStderr, watch: options.watch, watchAll: options.watchAll, + randomize: options.radomize, }; if (!multiProjects) { diff --git a/packages/jest/src/executors/jest/schema.d.ts b/packages/jest/src/executors/jest/schema.d.ts index 158ae7102154a1..f27d6d563841da 100644 --- a/packages/jest/src/executors/jest/schema.d.ts +++ b/packages/jest/src/executors/jest/schema.d.ts @@ -21,6 +21,7 @@ export interface JestExecutorOptions { changedSince?: string; outputFile?: string; passWithNoTests?: boolean; + randomize?: boolean; runInBand?: boolean; showConfig?: boolean; silent?: boolean; diff --git a/packages/jest/src/executors/jest/schema.json b/packages/jest/src/executors/jest/schema.json index 5c97023c99cdf6..d9a4b3b09bf60c 100644 --- a/packages/jest/src/executors/jest/schema.json +++ b/packages/jest/src/executors/jest/schema.json @@ -123,6 +123,10 @@ "description": "Will not fail if no tests are found (for example while using `--testPathPattern`.) (https://jestjs.io/docs/cli#--passwithnotests)", "type": "boolean" }, + "randomize": { + "description": "Shuffle the order of the tests within a file. The shuffling is based on the seed. This option is only supported using the default jest-circus test runner.", + "type": "boolean" + }, "runInBand": { "alias": "i", "description": "Run all tests serially in the current process (rather than creating a worker pool of child processes that run tests). This is sometimes useful for debugging, but such use cases are pretty rare. Useful for CI. (https://jestjs.io/docs/cli#--runinband)",