Skip to content

Commit 61a539f

Browse files
authored
Merge pull request #1978 from codeflash-ai/fix/jest-testmatch-testregex-conflict
fix(js): resolve Jest testMatch/testRegex configuration conflict
2 parents 3b7c61e + b9d8efa commit 61a539f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

codeflash/languages/javascript/test_runner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ def _create_runtime_jest_config(base_config_path: Path | None, project_root: Pat
393393
{test_dirs_js},
394394
],
395395
testMatch: ['**/*.test.ts', '**/*.test.js', '**/*.test.tsx', '**/*.test.jsx'],
396+
testRegex: undefined, // Clear testRegex from baseConfig to avoid conflict with testMatch
396397
{module_dirs_line}}};
397398
"""
398399
else:

0 commit comments

Comments
 (0)