Skip to content

Commit

Permalink
Tests: added esm for unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jszuminski committed Mar 19, 2024
1 parent 8115e8d commit fa5b339
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"node-tests-single": "node tests/node/node_test_runner_single.js",
"prepare": "husky install",
"build": "rollup -c",
"unit:test": "mocha \"tests/unit/**/*.test.js\""
"unit:test": "mocha --require esm \"tests/unit/**/*.test.js\""
},
"devDependencies": {
"@rollup/plugin-terser": "^0.4.4",
Expand All @@ -41,6 +41,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.3",
"esm": "^3.2.25",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"mocha": "^10.3.0",
Expand Down

0 comments on commit fa5b339

Please sign in to comment.