1 Star 0 Fork 195

allen_xu17 / Taro

forked from 凹凸实验室 / Taro 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
jest.config.js 753 Bytes
一键复制 编辑 原始数据 按行查看 历史
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { jsWithTs: tsjPreset } = require('ts-jest/presets')
const path = require('path')
module.exports = {
testEnvironment: 'node',
transform: {
...tsjPreset.transform
},
testURL: 'http://localhost/',
moduleFileExtensions: [
'ts',
'tsx',
'js',
'jsx',
'json',
'node'
],
globals: {
'ts-jest': {
diagnostics: false,
tsConfig: {
jsx: 'react',
allowJs: true,
target: 'ES6'
}
}
},
testPathIgnorePatterns: [
'node_modules',
'utils'
],
testMatch: ['**/__tests__/?(*.)+(spec|test).[jt]s?(x)'],
moduleNameMapper: {
'@tarojs/shared': path.join(__dirname, './packages/shared/src')
}
}
JavaScript
1
https://gitee.com/xuchen0317/Taro.git
git@gitee.com:xuchen0317/Taro.git
xuchen0317
Taro
Taro
next

搜索帮助