Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only match relative paths when specifying paths #12519

Merged
merged 23 commits into from
Oct 3, 2023
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
344bc43
Factor out toString() call
brandonchinn178 Apr 26, 2023
317d079
Remove redundant 'globalConfig.testPathPattern == null' check
brandonchinn178 Apr 26, 2023
86993d4
Consolidate testPathPatterns logic
brandonchinn178 Apr 26, 2023
ecd979f
Return TestPathPatterns in normalize helper
brandonchinn178 Apr 26, 2023
4caaa45
Store parsed patterns in global config
brandonchinn178 Apr 26, 2023
225b6fe
Change normalize tests to test testPathPatterns
brandonchinn178 Apr 26, 2023
993fc50
Replace testPathPatternToRegExp with TestPathPatterns
brandonchinn178 Apr 26, 2023
518c357
Update testPathPatterns in updateGlobalConfig
brandonchinn178 Apr 26, 2023
e347e72
Update docs + tests to use globalConfig.testPathPatterns
brandonchinn178 Apr 26, 2023
6713c2c
Replace remaining usages of globalConfig.testPathPattern
brandonchinn178 Sep 21, 2023
a4efd87
Remove testPathPattern from GlobalConfig
brandonchinn178 Apr 26, 2023
ae8ee58
Add failing tests for matching outside relative path
brandonchinn178 Apr 26, 2023
1911750
Only match within relative path
brandonchinn178 Apr 26, 2023
5fd3eda
Fix tests using partial GlobalConfigs
brandonchinn178 Apr 26, 2023
0225d22
Update CHANGELOG
brandonchinn178 Apr 26, 2023
e228478
Fix --testPathPattern => --testPathPatterns
brandonchinn178 Apr 26, 2023
de9edca
Don't overload TestPathPatterns constructor
brandonchinn178 Sep 25, 2023
042fddd
Update docs
brandonchinn178 Sep 25, 2023
a52fc2f
Add deprecation error for --testPathPattern
brandonchinn178 Sep 25, 2023
70a3999
Convert isValid() to validate()
brandonchinn178 Sep 25, 2023
3c22ef3
Make toPretty() render prettier output
brandonchinn178 Sep 30, 2023
0b22568
Merge branch 'main' into chinn/relative-paths
SimenB Oct 2, 2023
09aed7d
oops
SimenB Oct 2, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into chinn/relative-paths
  • Loading branch information
SimenB committed Oct 2, 2023
commit 0b22568ca1fc371c3771547610165caf23f69b14
15 changes: 14 additions & 1 deletion e2e/__tests__/__snapshots__/nativeEsm.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exports[`does not enforce import assertions 1`] = `
Tests: 2 passed, 2 total
Snapshots: 0 total
Time: <<REPLACED>>
Ran all test suites matching native-esm-missing-import-assertions.test."
Ran all test suites matching native-esm-missing-import-assertions.test.js."
`;

exports[`on node >=16.11.0 support re-exports from CJS of dual packages 1`] = `
Expand All @@ -21,7 +21,20 @@ exports[`on node >=16.12.0 supports import assertions 1`] = `
Tests: 2 passed, 2 total
Snapshots: 0 total
Time: <<REPLACED>>
<<<<<<< HEAD
Ran all test suites matching native-esm-import-assertions.test."
||||||| b4c9587d19
Ran all test suites matching /native-esm-import-assertions.test/i."
=======
Ran all test suites matching /native-esm-import-assertions.test.js/i."
`;

exports[`properly handle re-exported native modules in ESM via CJS 1`] = `
"Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: <<REPLACED>>
Ran all test suites matching native-esm-native-module.test.js."
`;

exports[`runs WebAssembly (Wasm) test with native ESM 1`] = `
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.