1 Star 1 Fork 69

啊佐 / lin-cms-vue

forked from lin-cms / lin-cms-vue 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
jest.config.js 663 Bytes
一键复制 编辑 原始数据 按行查看 历史
gongjs 提交于 2019-05-15 21:26 . Unit testing (#155):自动化测试
module.exports = {
moduleFileExtensions: [
'js',
'jsx',
'json',
'vue'
],
transform: {
'^.+\\.vue$': 'vue-jest',
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
'^.+\\.jsx?$': 'babel-jest'
},
transformIgnorePatterns: [
'/node_modules/'
],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1'
},
snapshotSerializers: [
'jest-serializer-vue'
],
testMatch: [
'**/tests/unit/**/*.test.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'
],
testURL: 'http://localhost/',
watchPlugins: [
'jest-watch-typeahead/filename',
'jest-watch-typeahead/testname'
]
}
JavaScript
1
https://gitee.com/joozes/lin-cms-vue.git
git@gitee.com:joozes/lin-cms-vue.git
joozes
lin-cms-vue
lin-cms-vue
vue-next

搜索帮助