1 Star 5 Fork 1

Git工具集/jupyterlab-git

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
jest.config.js 796 Bytes
一键复制 编辑 原始数据 按行查看 历史
var tsConfig = require ('./tsconfig.json');
var tsOptions = tsConfig["compilerOptions"];
// Need as the test folder is not visible from the src folder
tsOptions["rootDir"] = null;
tsOptions["inlineSourceMap"] = true;
module.exports = {
automock: false,
moduleNameMapper: {
'\\.(css|less|sass|scss)$': 'identity-obj-proxy',
'\\.(svg)$': '<rootDir>/testutils/jest-file-mock.js'
},
preset: 'ts-jest/presets/js-with-babel',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
setupFiles: ['<rootDir>/testutils/jest-setup-files.js'],
testPathIgnorePatterns: ['/lib/', '/node_modules/'],
testRegex: '/tests/.*.spec.ts[x]?$',
transformIgnorePatterns: ['/node_modules/(?!(@jupyterlab/.*)/)'],
globals: {
'ts-jest': {
tsConfig: tsOptions
}
}
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/vcs-all-in-one/jupyterlab-git.git
git@gitee.com:vcs-all-in-one/jupyterlab-git.git
vcs-all-in-one
jupyterlab-git
jupyterlab-git
master

搜索帮助