diff --git a/env.js b/env.js index 355a9ed6a68870171386c4b9ab2b1b0f6236baa7..cfd2db5fd072f74ac6100d089b2885d6931426c9 100644 --- a/env.js +++ b/env.js @@ -1,3 +1,4 @@ +// 自动化测试 module.exports = { "is-custom-runtime": false, "compile": true, @@ -28,11 +29,11 @@ module.exports = { "executablePath": "" }, "uni-app-x": { - "version": "/Applications/HBuilderX-Dev.app/Contents/HBuilderX/plugins/uniappx-launcher/base/version.txt", + "version": "/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniappx-launcher/base/version.txt", "android": { - "id": "4fa6954", - "executablePath": "/Applications/HBuilderX-Dev.app/Contents/HBuilderX/plugins/uniappx-launcher/base/android_base.apk" + "id": "emulator-5554", + "executablePath": "/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniappx-launcher/base/android_base.apk" } } } -} \ No newline at end of file +} diff --git a/jest.config.js b/jest.config.js index 78759275d5fd1386f96a3f2992b119b2ea7df3b2..fd80b0b92790de6dd52a7f7d4464e5e6addb02b5 100644 --- a/jest.config.js +++ b/jest.config.js @@ -6,7 +6,7 @@ module.exports = { watchPathIgnorePatterns: ['/node_modules/', '/dist/', '/.git/'], moduleFileExtensions: ['js', 'json'], rootDir: __dirname, - testMatch: ["/pages/API/report/report.test.js"], + testMatch: ["/pages/**/*test.[jt]s?(x)"], testPathIgnorePatterns: [ '/node_modules/', ],