mirror of
https://github.com/bitwarden/browser
synced 2026-02-07 04:03:29 +00:00
Fixup jest test pattern matching regex escapes
This commit is contained in:
@@ -12,11 +12,11 @@ const presetConfig = createCjsPreset({
|
||||
/** @type {import('jest').Config} */
|
||||
module.exports = {
|
||||
...presetConfig,
|
||||
testMatch: ["**/+(*.)+(spec).+(ts)"],
|
||||
testMatch: ["**/+(*.)+(spec).+(ts|js|mjs|cjs)"],
|
||||
testPathIgnorePatterns: [
|
||||
"/node_modules/", // default value
|
||||
".*.type.spec.ts", // ignore type tests (which are checked at compile time and not run by jest)
|
||||
".*.play.spec.ts", // ignore playwright tests
|
||||
"\\.type\\.spec\\.ts", // ignore type tests (which are checked at compile time and not run by jest)
|
||||
"\\.play\\.spec\\.ts", // ignore playwright tests
|
||||
],
|
||||
|
||||
// Improves on-demand performance, for watches prefer 25%, overridable by setting --maxWorkers
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
/** @type {import('jest').Config} */
|
||||
module.exports = {
|
||||
// Match all .spec.ts files, but not .play.spec.ts files, those are playwright tests
|
||||
testMatch: ["**/+(*.)+(spec).+(ts)"],
|
||||
testMatch: ["**/+(*.)+(spec).+(ts|js|mjs|cjs)"],
|
||||
testPathIgnorePatterns: [
|
||||
"/node_modules/", // default value
|
||||
".*.type.spec.ts", // ignore type tests (which are checked at compile time and not run by jest)
|
||||
".*.play.spec.ts", // ignore playwright tests
|
||||
"\\.type\\.spec\\.ts", // ignore type tests (which are checked at compile time and not run by jest)
|
||||
"\\.play\\.spec\\.ts", // ignore playwright tests
|
||||
],
|
||||
|
||||
// Workaround for a memory leak that crashes tests in CI:
|
||||
|
||||
Reference in New Issue
Block a user