1
0
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:
Matt Gibson
2025-10-07 12:44:45 -07:00
parent cb6217acc5
commit 75fb9fc449
2 changed files with 6 additions and 6 deletions

View File

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

View File

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