test: replace mocha with jest for unit testing
This change introduces Jest test framework to run our unit tests.
Showing
jest.config.js
0 → 100644
此差异已折叠。
... | ... | @@ -494,7 +494,7 @@ |
"vscode:prepublish": "npm run compile", | ||
"compile": "tsc -p ./", | ||
"watch": "tsc -watch -p ./", | ||
"test-unit": "mocha ./src/**/**.test.js", | ||
"test-unit": "jest", | ||
"test-integration": "npm run compile && node ./out/runTest.js", | ||
"create-test-workspace": "npm run compile && node ./scripts/create_workspace_for_test_debugging.js", | ||
"test": "npm run test-unit && npm run test-integration", | ||
... | ... | @@ -517,6 +517,7 @@ |
"eslint-config-prettier": "^6.10.0", | ||
"eslint-plugin-import": "^2.20.0", | ||
"eslint-plugin-prettier": "^3.1.2", | ||
"jest": "^26.2.2", | ||
"mocha": "^7.0.1", | ||
"msw": "^0.19.5", | ||
"prettier": "^1.19.1", | ||
... | ... |
想要评论请 注册 或 登录