1 Star 0 Fork 2

你的益达我要吃 / 基于vue2+typescript+composition-api的uniapp模版

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
jest.config.js 730 Bytes
一键复制 编辑 原始数据 按行查看 历史
calnong 提交于 2022-01-27 19:37 . feat: 增加单元测试能力
module.exports = {
moduleFileExtensions: ['js', 'jsx', 'json', 'vue', 'ts', 'tsx'],
transform: {
'^.+\\.vue$': 'vue-jest',
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
'^.+\\.tsx?$': 'ts-jest',
'^.+\\.jsx?$': 'babel-jest'
},
moduleNameMapper: {
'^@src/(.*)$': '<rootDir>/src/$1',
'^@/(.*)$': '<rootDir>/src/$1'
},
snapshotSerializers: ['jest-serializer-vue'],
testMatch: ['**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'],
transformIgnorePatterns: [
// Change MODULE_NAME_HERE to your module that isn't being compiled
],
testURL: 'http://localhost/',
globals: {
'ts-jest': {
babelConfig: true
}
}
};
TypeScript
1
https://gitee.com/pengxin_cool/uniapp-composition-api-ts-base.git
git@gitee.com:pengxin_cool/uniapp-composition-api-ts-base.git
pengxin_cool
uniapp-composition-api-ts-base
基于vue2+typescript+composition-api的uniapp模版
master

搜索帮助