1 Star 0 Fork 47

DawnStart/tmagic-editor

forked from Tencent/tmagic-editor 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
jest-preset.js 1022 Bytes
一键复制 编辑 原始数据 按行查看 历史
roymondchen 提交于 2022-04-14 15:47 . chore: 更新npm依赖
module.exports = {
testEnvironment: 'jsdom',
transform: {
// process *.vue files with vue-jest
'^.+\\.vue$': '@vue/vue3-jest',
'.+\\.(css|styl|less|sass|scss|jpg|jpeg|png|svg|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|avif)$':
'jest-transform-stub',
'^.+\\.jsx?$': 'babel-jest',
'^.+\\.tsx?$': 'ts-jest',
},
// serializer for snapshots
snapshotSerializers: ['jest-serializer-vue'],
testMatch: ['**/tests/unit/**/*.spec.[jt]s?(x)', '**/__tests__/*.[jt]s?(x)'],
// https://github.com/facebook/jest/issues/6766
testURL: 'http://localhost/',
transformIgnorePatterns: ['/node_modules/(?!lodash-es|vue)'],
collectCoverage: true,
moduleNameMapper: {
'^@tmagic/(.*)$': '<rootDir>/../$1/src/index.ts',
'^@editor/(.*)$': '<rootDir>/src/$1',
'^lodash-es$': 'lodash',
},
moduleFileExtensions: ['js', 'jsx', 'json', 'vue', 'ts', 'tsx'],
testPathIgnorePatterns: ['/magic-admin/'],
globals: {
'ts-jest': {
babelConfig: false,
},
},
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dawn_start/tmagic-editor.git
git@gitee.com:dawn_start/tmagic-editor.git
dawn_start
tmagic-editor
tmagic-editor
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385