From ca5fc7e56447c202441cc72bf5aef59f18bf1112 Mon Sep 17 00:00:00 2001 From: Brandon Chinn Date: Tue, 5 Mar 2024 23:35:51 -0800 Subject: [PATCH] Update docs --- CHANGELOG.md | 1 + packages/jest-cli/src/args.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 13752c82a913..2035c98105d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -52,6 +52,7 @@ - `[jest-cli]` When specifying paths on the command line, only match against the relative paths of the test files ([#12519](https://github.com/jestjs/jest/pull/12519)) - [**BREAKING**] Changes `testPathPattern` configuration option to `testPathPatterns`, which now takes a list of patterns instead of the regex. - [**BREAKING**] `--testPathPattern` is now `--testPathPatterns` + - [**BREAKING**] Specifying `testPathPatterns` when programmatically calling `watch` must be specified as `new TestPathPatterns(patterns)`, where `TestPathPatterns` can be imported from `@jest/types` - `[jest-reporters, jest-runner]` Unhandled errors without stack get correctly logged to console ([#14619](https://github.com/jestjs/jest/pull/14619)) ### Performance diff --git a/packages/jest-cli/src/args.ts b/packages/jest-cli/src/args.ts index 5e84991fd47d..f6993afcd784 100644 --- a/packages/jest-cli/src/args.ts +++ b/packages/jest-cli/src/args.ts @@ -655,7 +655,7 @@ export const options: {[key: string]: Options} = { }, testPathPatterns: { description: - 'A regexp pattern string that is matched against all tests ' + + 'An array of regexp pattern strings that are matched against all tests ' + 'paths before executing the test.', requiresArg: true, string: true,