From 018074be25b58def641c681145218c739fb780ce Mon Sep 17 00:00:00 2001 From: donglin <783137663@qq.com> Date: Wed, 18 Sep 2024 11:14:50 +0800 Subject: [PATCH 1/3] feat(jest-cli): export `buildArgv` #12456 --- packages/jest-cli/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jest-cli/src/index.ts b/packages/jest-cli/src/index.ts index 573dac6cabaa..04967c2fb367 100644 --- a/packages/jest-cli/src/index.ts +++ b/packages/jest-cli/src/index.ts @@ -5,5 +5,5 @@ * LICENSE file in the root directory of this source tree. */ -export {run} from './run'; +export {run, buildArgv} from './run'; export {options as yargsOptions} from './args'; From f1a17c6ba9236b9f08f0c034f5ccc7f06588b858 Mon Sep 17 00:00:00 2001 From: donglin <783137663@qq.com> Date: Wed, 18 Sep 2024 11:28:13 +0800 Subject: [PATCH 2/3] feat(jest): export `buildArgv` #12456 --- packages/jest/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jest/src/index.ts b/packages/jest/src/index.ts index 0391990e7846..13ffde6b76ce 100644 --- a/packages/jest/src/index.ts +++ b/packages/jest/src/index.ts @@ -14,6 +14,6 @@ export { runCLI, } from '@jest/core'; -export {run} from 'jest-cli'; +export {run, buildArgv} from 'jest-cli'; export type Config = ConfigTypes.InitialOptions; From a272b17095210ffcc37ab6dc7c8f56fc41c84090 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Wed, 15 Jan 2025 08:02:37 +0100 Subject: [PATCH 3/3] changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 947668cd2cbe..609bfbfbcf39 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - `[jest-circus]` Add a `retryImmediately` option to `jest.retryTimes` ([#14696](https://github.com/jestjs/jest/pull/14696)) - `[jest-circus, jest-jasmine2]` Allow `setupFilesAfterEnv` to export an async function ([#10962](https://github.com/jestjs/jest/issues/10962)) - `[jest-circus, jest-test-result]` Add `startedAt` timestamp in `TestCaseResultObject` within `onTestCaseResult` ([#15145](https://github.com/jestjs/jest/pull/15145)) +- `[jest-cli]` Export `buildArgv` ([#15310](https://github.com/facebook/jest/pull/15310)) - `[jest-config]` [**BREAKING**] Add `mts` and `cts` to default `moduleFileExtensions` config ([#14369](https://github.com/facebook/jest/pull/14369)) - `[jest-config]` [**BREAKING**] Update `testMatch` and `testRegex` default option for supporting `mjs`, `cjs`, `mts`, and `cts` ([#14584](https://github.com/jestjs/jest/pull/14584)) - `[jest-config]` Loads config file from provided path in `package.json` ([#14044](https://github.com/facebook/jest/pull/14044))