Skip to content

Commit

Permalink
Use proper tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mintexists committed Mar 30, 2022
1 parent 399ec83 commit 6948946
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@
}
},
"scripts": {
"test:cjs": "npx jest --env node --testTimeout 45000 --moduleFileExtensions js --moduleFileExtensions cjs --testMatch '**/*.test.cjs'",
"test:mjs": "NODE_OPTIONS=--experimental-vm-modules npx jest --env jsdom --transform '{}' --testTimeout 45000 --testMatch '**/*.test.js'",
"test:esm": "NODE_OPTIONS=--experimental-vm-modules npx jest --env node --transform '{}' --testTimeout 45000 --testMatch '**/*.test.js'",
"test": "npm run test:cjs && npm run test:mjs && npm run test:esm"
"test:cjs:node": "jest --env node --testTimeout 45000 --moduleFileExtensions js --moduleFileExtensions cjs --testMatch '**/*.test.cjs'",
"test:cjs:jsdom": "jest --env jsdom --testTimeout 45000 --moduleFileExtensions js --moduleFileExtensions cjs --testMatch '**/*.test.cjs'",
"test:cjs": "npm run test:cjs:node && npm run test:cjs:jsdom",
"test:mjs:node": "NODE_OPTIONS=--experimental-vm-modules jest --env node --transform '{}' --testTimeout 45000 --testMatch '**/*.test.js'",
"test:mjs:jsdom": "NODE_OPTIONS=--experimental-vm-modules jest --env jsdom --transform '{}' --testTimeout 45000 --testMatch '**/*.test.js'",
"test:mjs": "npm run test:mjs:node && npm run test:mjs:jsdom",
"test": "npm run test:cjs && npm run test:mjs"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 6948946

Please sign in to comment.