Skip to content

Commit

Permalink
Move module tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Feb 10, 2024
1 parent ad7a2b2 commit 1957c07
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,9 @@
"type": "module",
"scripts": {
"moon": "$(yarn bin moon)",
"pack:all": "yarn run moon run :pack",
"coverage": "yarn test --coverage",
"docs": "cd website && yarn run start",
"format": "prettier --write .",
"test": "NODE_ENV=test BOOSTJS_ENV=test vitest",
"test:cli": "node ./packages/cli/examples/bin.js",
"test:tsm": "node ./packages/module/tests/commonjs.assert.cjs && node ./packages/module/tests/commonjs.assert.mjs",
"test:loader": "node --experimental-loader @boost/module/loader ./packages/module/tests/esmloader.assert.mjs && node --loader @boost/module/loader-typescript ./packages/module/tests/esmloader.assert.mjs",
"release": "yarn run pack && yarn run check && lerna-release",
"version": "yarn install && git add yarn.lock",
"packemon": "yarn dlx --package [email protected] --package typescript --quiet packemon"
Expand Down
14 changes: 14 additions & 0 deletions packages/module/moon.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
tasks:
test-tsm:
command: 'node ./tests/commonjs.assert.cjs && node ./tests/commonjs.assert.mjs'
deps:
- 'build'
options:
shell: true

test-loader:
command: 'node --experimental-loader @boost/module/loader ./tests/esmloader.assert.mjs && node --loader @boost/module/loader-typescript ./tests/esmloader.assert.mjs'
deps:
- 'build'
options:
shell: true
2 changes: 0 additions & 2 deletions packages/module/tests/commonjs.assert.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ try {
error.message,
`Unable to require non-CommonJS file "${path.join(
process.cwd(),
'packages',
'module',
'tests',
'__fixtures__',
'format-mjs.mjs',
Expand Down

0 comments on commit 1957c07

Please sign in to comment.