-
Notifications
You must be signed in to change notification settings - Fork 522
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: copy_to_bin shenanigans for Windows CI
- Loading branch information
1 parent
44b6a97
commit 9f541ce
Showing
5 changed files
with
46 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 13 additions & 1 deletion
14
internal/linker/test/issue_1823_use_ts_library_esm/jest.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
const isWindows = process.platform === 'win32'; | ||
|
||
module.exports = { | ||
testEnvironment: 'node', | ||
transform: {'^.+\\.mjs?$': 'babel-jest'}, | ||
testMatch: ['**/?(*.)(spec|test).?(m)js?(x)'], | ||
// More Shenanigans for Windows where jest is running both the original .mjs & the babel | ||
// transformed .js and fails. Not sure what why this is the case or exactly why changing | ||
// testMatch solves it but not a priority to solve: | ||
// ``` | ||
// PASS ../../lib.test.js | ||
// FAIL ../../lib.test.mjs | ||
// C:\b\swkzcapm\execroot\build_bazel_rules_nodejs\bazel-out\x64_windows-fastbuild\bin\internal\linker\test\issue_1823_use_ts_library_esm\lib.test.mjs:1 | ||
// import { doStuff } from './lib'; | ||
// ^^^^^^ | ||
// ``` | ||
testMatch: [isWindows ? '**/?(*.)(spec|test).js?(x)' : '**/?(*.)(spec|test).?(m)js?(x)'], | ||
moduleFileExtensions: ['js', 'mjs'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters