vue 单元测试初学
1 安装vue 选择单元测试启动项目2 单元测试写在组件同级的配置,在jest.config.js 里module.exports = { preset: "@vue/cli-plugin-unit-jest/presets/typescript-and-babel", // 添加以下 testMatch: ["<rootDir>/src/**/*.spec.ts"], // testMatch 是执行单元测试的路径 testURL: "http://10.0.11
原创
2022-03-01 10:47:24 ·
601 阅读 ·
0 评论