加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.mocharc.client.js 679 Bytes
一键复制 编辑 原始数据 按行查看 历史
Diego Sampaio 提交于 2021-12-29 11:59 . Chore: Prettier for us all (#24000)
'use strict';
/**
* Mocha configuration for client-side unit and integration tests.
*/
const base = require('./.mocharc.base.json');
/**
* Mocha will run `ts-node` without doing type checking to speed-up the tests. It should be fine as `npm run typecheck`
* covers test files too.
*/
Object.assign(
process.env,
{
TS_NODE_FILES: true,
TS_NODE_TRANSPILE_ONLY: true,
},
process.env,
);
module.exports = {
...base, // see https://github.com/mochajs/mocha/issues/3916
require: [...base.require, './tests/setup/registerWebApiMocks.ts', './tests/setup/cleanupTestingLibrary.ts'],
exit: false,
slow: 200,
spec: ['client/**/*.spec.ts', 'client/**/*.spec.tsx'],
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化