We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
目标:搭建单元测试框架,为后续关键算法改进开发配套测试代码 分支:test
首先全局安装mocha:
yarn global add mocha
测试代码:https://github.com/Symbolk/somanyconflicts/blob/test/src/test/AlgUtils.test.ts
命令行执行:
mocha -r ts-node/register ./src/test/*.test.ts
但遇到如下错误(因为test中依赖的Conflict依赖vscode):
Error: Cannot find module 'vscode' Require stack: - /Users/symbolk/coding/vscode/somanyconflicts/src/Conflict.ts - /Users/symbolk/coding/vscode/somanyconflicts/src/test/AlgUtils.test.ts - /Users/symbolk/.nvm/versions/node/v14.16.0/lib/node_modules/mocha/lib/esm-utils.js - /Users/symbolk/.nvm/versions/node/v14.16.0/lib/node_modules/mocha/lib/mocha.js - /Users/symbolk/.nvm/versions/node/v14.16.0/lib/node_modules/mocha/lib/cl
The text was updated successfully, but these errors were encountered:
Symbolk
shigma
No branches or pull requests
目标:搭建单元测试框架,为后续关键算法改进开发配套测试代码
分支:test
首先全局安装mocha:
测试代码:https://github.com/Symbolk/somanyconflicts/blob/test/src/test/AlgUtils.test.ts
命令行执行:
但遇到如下错误(因为test中依赖的Conflict依赖vscode):
The text was updated successfully, but these errors were encountered: