Skip to content

Commit

Permalink
update test commands
Browse files Browse the repository at this point in the history
  • Loading branch information
dmail committed Aug 20, 2024
1 parent ce6fe04 commit f4a8f61
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@
"test": "node --conditions=development ./scripts/test/test.mjs",
"build": "node --conditions=development ./scripts/build/build.mjs",
"packages:test": "npm run test -- ./packages/",
"custom:test": "npm test @jsenv/custom-elements-redefine",
"workspace:test": "npm run test --workspaces --if-present -- --workspace",
"workspace:build": "npm run build --workspaces --if-present --conditions=developement",
"monorepo:sync_packages_versions": "node ./scripts/monorepo/sync_packages_versions.mjs",
"monorepo:publish": "node ./scripts/monorepo/publish_packages.mjs",
Expand Down
15 changes: 12 additions & 3 deletions scripts/test/test.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
/*
* Execute all test files
* Execute test files
* - npm test
* Read more in https://github.com/jsenv/core/tree/main/packages/test#jsenvtest-
* Execute only tests inside @jsenv/core
* - npm test @jsenv/humanize(
* Execute only tests inside @jsenv/humanize
* - npm test ./packages/
* Execute only tests inside ./packages/
* - npm test .
* Execute all tests
*/

import {
Expand All @@ -13,7 +19,10 @@ import {
} from "@jsenv/test";

if (process.argv.length === 2) {
process.argv.push("./tests/");
process.argv.push("@jsenv/core");
}
if (process.argv[2] === "@jsenv/core") {
process.argv[2] = "./tests/";
}
await executeTestPlan({
logs: {
Expand Down

0 comments on commit f4a8f61

Please sign in to comment.