feat(jest-cli): export `buildArgv` #12456 (#15310)

This commit is contained in:
donglin 2025-01-15 17:51:07 +08:00 committed by GitHub
parent a696b1af61
commit 45f56d5b6b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 2 deletions

View File

@ -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))

View File

@ -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';

View File

@ -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;