Skip to content

Commit

Permalink
update workspaces tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bumblehead committed Sep 13, 2023
1 parent 9d28c02 commit 8636624
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"install:test-no-loader": "cd tests-no-loader && npm install",
"install:test-nodets": "cd tests-nodets && npm install",
"install:test-mocha": "cd tests-mocha && npm install",
"install:test-workspaces": "cd tests-workspaces && npm install",
"install:all": "node --version && npm install && npm-run-all install:test*",
"test:test-uvu": "cd tests-uvu && npm test",
"test:test-mocha": "cd tests-mocha && npm test",
Expand All @@ -55,7 +56,7 @@
"test:node18-test-nodets": "cd tests-nodets && npm test",
"test:node18-test-source-map": "cd tests-source-map && npm test",
"test:node18-test-no-loader": "cd tests-no-loader && npm test",
"test:node18-test-workspces": "cd tests-workspaces && npm test",
"test:node18-test-workspaces": "cd tests-workspaces && npm test",
"test:node18:all": "npm run isnodelt18 || npm-run-all test:node18-test*",
"test:all": "npm-run-all test:test* && npm run test:node18:all",
"test:all-cover": "c8 --src=../src/* npm run test:all",
Expand Down
3 changes: 2 additions & 1 deletion tests/tests-workspaces/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
"workspaces-ts/*"
],
"scripts": {
"isnodelt20_6": "node -e \"(([mj, mn]) => (+mj < 20 || (+mj === 20 && +mn < 6)))(process.versions.node.split('.')) || process.exit(1)\"",
"test-workspaces-js": "npm --prefix workspaces-js/js-b test",
"test-workspaces-ts": "npm --prefix workspaces-js/js-b test",
"test-workspaces": "npm run test-workspaces-js && npm run test-workspaces-ts",
"test": "npm run test-workspaces"
"test": "npm run isnodelt20_6 || npm run test-workspaces"
}
}
2 changes: 1 addition & 1 deletion tests/tests-workspaces/workspaces-js/js-b/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {foo} from 'a'
import {foo} from 'js-a'

export default function test () {
return foo()
Expand Down
2 changes: 1 addition & 1 deletion tests/tests-workspaces/workspaces-ts/ts-b/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {foo} from 'a'
import {foo} from 'ts-a'

export default function test () {
return foo()
Expand Down

0 comments on commit 8636624

Please sign in to comment.