Skip to content

Commit

Permalink
chore(test): replace mocha with native node:test
Browse files Browse the repository at this point in the history
  • Loading branch information
leon19 committed Oct 27, 2024
1 parent 172731d commit 095a67a
Show file tree
Hide file tree
Showing 7 changed files with 135 additions and 1,015 deletions.
4 changes: 0 additions & 4 deletions .mocharc.json

This file was deleted.

3 changes: 3 additions & 0 deletions .test.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
NODE_ENV=test
NODE_OPTIONS="--loader ts-node/esm --no-warnings --enable-source-maps"

10 changes: 1 addition & 9 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,10 @@
"args": ["${relativeFile}"],
"runtimeArgs": ["-r", "ts-node/register"],
"sourceMaps": true,
"cwd": "${workspaceRoot}",
"protocol": "inspector"
"cwd": "${workspaceRoot}"
}
]
},
"testExplorer.useNativeTesting": true,
"testExplorer.addToEditorContextMenu": true,
"mochaExplorer.require": ["tests/entry.js"],
"mochaExplorer.env": {
"NODE_ENV": "test"
},
"mochaExplorer.files": "tests/**/*.{test,spec}.ts",
"prettier.enable": true,
"[json]": {
"editor.defaultFormatter": "biomejs.biome"
Expand Down
Loading

0 comments on commit 095a67a

Please sign in to comment.