-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run tests against source, CJS, and UMD builds (#6209)
* Test react-router(-dom) source, CJS, and UMD * Please go away, package-lock * Test against new CJS builds * Multi-test react-router-config * Remove "resolved by" comments * Retain original import order
- Loading branch information
Showing
10 changed files
with
118 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const execSync = require("child_process").execSync; | ||
|
||
const exec = (command, extraEnv) => | ||
execSync(command, { | ||
stdio: "inherit", | ||
env: Object.assign({}, process.env, extraEnv) | ||
}); | ||
|
||
console.log("Testing source files"); | ||
|
||
exec("jest", { | ||
TEST_ENV: "source" | ||
}); | ||
|
||
console.log("Testing commonjs build"); | ||
|
||
exec("jest", { | ||
TEST_ENV: "cjs" | ||
}); | ||
|
||
console.log("Testing UMD build"); | ||
|
||
exec("jest", { | ||
TEST_ENV: "umd" | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const execSync = require("child_process").execSync; | ||
|
||
const exec = (command, extraEnv) => | ||
execSync(command, { | ||
stdio: "inherit", | ||
env: Object.assign({}, process.env, extraEnv) | ||
}); | ||
|
||
console.log("Testing source files"); | ||
|
||
exec("jest", { | ||
TEST_ENV: "source" | ||
}); | ||
|
||
console.log("Testing commonjs build"); | ||
|
||
exec("jest", { | ||
TEST_ENV: "cjs" | ||
}); | ||
|
||
console.log("Testing UMD build"); | ||
|
||
exec("jest", { | ||
TEST_ENV: "umd" | ||
}); |
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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const execSync = require("child_process").execSync; | ||
|
||
const exec = (command, extraEnv) => | ||
execSync(command, { | ||
stdio: "inherit", | ||
env: Object.assign({}, process.env, extraEnv) | ||
}); | ||
|
||
console.log("Testing source files"); | ||
|
||
exec("jest", { | ||
TEST_ENV: "source" | ||
}); | ||
|
||
console.log("Testing commonjs build"); | ||
|
||
exec("jest", { | ||
TEST_ENV: "cjs" | ||
}); | ||
|
||
console.log("Testing UMD build"); | ||
|
||
exec("jest", { | ||
TEST_ENV: "umd" | ||
}); |