Skip to content

Commit

Permalink
correction to pattern used by script test commands
Browse files Browse the repository at this point in the history
  • Loading branch information
bumblehead committed Sep 10, 2023
1 parent 941a5b1 commit 1c6d69b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions tests/tests-ava/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"isnodelt20_6": "node -e \"(([mj, mn]) => (+mj < 20 || (+mj === 20 && +mn < 6)))(process.versions.node.split('.')) || process.exit(1)\"",
"test:default": "NODE_OPTIONS=--loader=esmock ava",
"test:win32": "set \"NODE_OPTIONS=--loader=esmock\" && ava",
"test:current": "npm run isnodelt20_6 || ava",
"test": "run-script-os && npm run test:current"
"test:current": "ava",
"test": "run-script-os && npm run isnodelt20_6 || npm run test:current"
}
}
8 changes: 4 additions & 4 deletions tests/tests-jest-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
},
"scripts": {
"isnodelt20_6": "node -e \"(([mj, mn]) => (+mj < 20 || (+mj === 20 && +mn < 6)))(process.versions.node.split('.')) || process.exit(1)\"",
"test:defaultcurrent": "npm run isnodelt20_6 || NODE_OPTIONS=\"--loader=ts-node/esm\" jest esmock.node-jest.test.ts",
"test:defaultcurrent": "NODE_OPTIONS=\"--loader=ts-node/esm\" jest esmock.node-jest.test.ts",
"test:defaultloader": "NODE_OPTIONS=\"--loader=ts-node/esm --loader=esmock\" jest esmock.node-jest.test.ts",
"test:default": "npm run test:defaultloader && npm run test:defaultcurrent",
"test:win32current": "npm run isnodelt20_6 || set \"NODE_OPTIONS=--loader=ts-node/esm\" && jest esmock.node-jest.test.ts",
"test:default": "npm run test:defaultloader && npm run isnodelt20_6 || npm run test:defaultcurrent",
"test:win32current": "set \"NODE_OPTIONS=--loader=ts-node/esm\" && jest esmock.node-jest.test.ts",
"test:win32loader": "set \"NODE_OPTIONS=--loader=ts-node/esm --loader=esmock\" && jest esmock.node-jest.test.ts",
"test:win32": "npm run test:win32loader && npm run test:win32current",
"test:win32": "npm run test:win32loader && npm run isnodelt20_6 || npm run test:win32current",
"test": "run-script-os"
}
}
4 changes: 2 additions & 2 deletions tests/tests-jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"isnodelt20_6": "node -e \"(([mj, mn]) => (+mj < 20 || (+mj === 20 && +mn < 6)))(process.versions.node.split('.')) || process.exit(1)\"",
"test:default": "NODE_OPTIONS=--loader=esmock jest",
"test:win32": "set NODE_OPTIONS=--loader=esmock && jest",
"test:current": "npm run isnodelt20_6 || jest",
"test": "run-script-os && npm run test:current"
"test:current": "jest",
"test": "run-script-os && npm run isnodelt20_6 || npm run test:current"
}
}
4 changes: 2 additions & 2 deletions tests/tests-mocha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"scripts": {
"isnodelt20_6": "node -e \"(([mj, mn]) => (+mj < 20 || (+mj === 20 && +mn < 6)))(process.versions.node.split('.')) || process.exit(1)\"",
"test:loader": "mocha --loader=esmock",
"test:current": "npm run isnodelt20_6 || mocha",
"test": "npm run test:loader && npm run test:current"
"test:current": "mocha",
"test": "npm run test:loader && npm run isnodelt20_6 || npm run test:current"
}
}
4 changes: 2 additions & 2 deletions tests/tests-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"scripts": {
"isnodelt20_6": "node -e \"(([mj, mn]) => (+mj < 20 || (+mj === 20 && +mn < 6)))(process.versions.node.split('.')) || process.exit(1)\"",
"test:loader": "node --loader=esmock --test",
"test:current": "npm run isnodelt20_6 || node --test",
"test": "npm run test:loader && npm run test:current"
"test:current": "node --test",
"test": "npm run test:loader && npm run isnodelt20_6 || npm run test:current"
}
}

0 comments on commit 1c6d69b

Please sign in to comment.