Skip to content

Commit

Permalink
Test UMD builds
Browse files Browse the repository at this point in the history
  • Loading branch information
pshrmn committed Jun 17, 2018
1 parent 4df4138 commit 492b3fc
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/react-router-config/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ switch (process.env.TEST_ENV) {
case "es":
mappedModule = "<rootDir>/es/index";
break;
case "umd":
mappedModule = "<rootDir>/umd/react-router-config.js";
break;
case "min":
mappedModule = "<rootDir>/umd/react-router-config.min.js";
break;
default:
mappedModule = "<rootDir>/modules/index";
}
Expand Down
12 changes: 12 additions & 0 deletions packages/react-router-config/tools/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,15 @@ console.log("Testing es build");
exec("jest", {
TEST_ENV: "es"
});

console.log("Testing UMD build");

exec("jest", {
TEST_ENV: "umd"
});

console.log("Testing UMD min build");

exec("jest", {
TEST_ENV: "min"
});
6 changes: 6 additions & 0 deletions packages/react-router-dom/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ switch (process.env.TEST_ENV) {
case "es":
mappedModule = "<rootDir>/es/index";
break;
case "umd":
mappedModule = "<rootDir>/umd/react-router-dom.js";
break;
case "min":
mappedModule = "<rootDir>/umd/react-router-dom.min.js";
break;
default:
mappedModule = "<rootDir>/modules/index";
}
Expand Down
6 changes: 6 additions & 0 deletions packages/react-router-dom/tools/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,9 @@ console.log("Testing es build");
exec("jest", {
TEST_ENV: "es"
});

console.log("Testing UMD build");

exec("jest", {
TEST_ENV: "umd"
});
6 changes: 6 additions & 0 deletions packages/react-router/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ switch (process.env.TEST_ENV) {
case "es":
mappedModule = "<rootDir>/es/index";
break;
case "umd":
mappedModule = "<rootDir>/umd/react-router.js";
break;
case "min":
mappedModule = "<rootDir>/umd/react-router.min.js";
break;
default:
mappedModule = "<rootDir>/modules/index";
}
Expand Down
6 changes: 6 additions & 0 deletions packages/react-router/tools/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,9 @@ console.log("Testing es build");
exec("jest", {
TEST_ENV: "es"
});

console.log("Testing UMD build");

exec("jest", {
TEST_ENV: "umd"
});

0 comments on commit 492b3fc

Please sign in to comment.