1 Star 0 Fork 16

hastone/Ovine

forked from 一组码/ovine 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
jest.config.js 918 Bytes
一键复制 编辑 原始数据 按行查看 历史
yizumaorg 提交于 2020-04-18 23:32 . Prepare to write documents
const path = require('path')
const ignorePatterns = [
'node_modules',
'__fixtures__',
'/packages/cli/lib',
'/packages/core/lib',
'/packages/init/lib',
'/packages/init/env',
'/packages/init/templates',
'/packages/craft/lib',
]
module.exports = {
rootDir: path.resolve(__dirname),
verbose: true,
testEnvironment: 'jsdom',
testURL: 'http://localhost/',
testPathIgnorePatterns: ignorePatterns,
coveragePathIgnorePatterns: ignorePatterns,
setupFiles: ['<rootDir>/testing/jest_setup.js'],
transform: {
'^.+\\.[jt]sx?$': 'babel-jest',
},
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/packages/core/src/$1', // TODO: "@/" prefix change
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/testing/file_mock.js',
'\\.(css|scss)$': '<rootDir>/testing/style_mock.js',
},
testMatch: ['**/__tests__/**/*.test.[j|t]s?(x)'],
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/hastone/Ovine.git
[email protected]:hastone/Ovine.git
hastone
Ovine
Ovine
master

搜索帮助