From 45f56d5b6b4313a2a1184180859c05a0c02471ae Mon Sep 17 00:00:00 2001 From: donglin <783137663@qq.com> Date: Wed, 15 Jan 2025 17:51:07 +0800 Subject: [PATCH] feat(jest-cli): export `buildArgv` #12456 (#15310) --- CHANGELOG.md | 1 + packages/jest-cli/src/index.ts | 2 +- packages/jest/src/index.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f31431fe56fa..695566a72df8 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)) 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'; 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;