diff --git a/jest.config.js b/jest.config.js index ee3660b5d34edec7a7aa7d8dd057bc9c272a3b7e..ed01f405567e899288568d292599552a0581f3fe 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,6 +1,6 @@ const path = require('path'); module.exports = { - testTimeout: 20000, + testTimeout: 50000, reporters: [ 'default' ], diff --git a/pages/ucenter/settings/settings.test.js b/pages/ucenter/settings/settings.test.js index c76f079c2c18fe83eed9dcc35a425fdeafc45b81..da8608e8ffa423f0205746902667fbed2557e4ea 100644 --- a/pages/ucenter/settings/settings.test.js +++ b/pages/ucenter/settings/settings.test.js @@ -1,5 +1,5 @@ // uniapp自动化测试教程: https://uniapp-test.dcloud.net.cn/docs/testcase/start -jest.setTimeout(20000); +jest.setTimeout(30000); const PAGE_PATH = '/pages/ucenter/settings/settings' describe('settings', () => { let page,hasLogin; diff --git a/pages/ucenter/ucenter.test.js b/pages/ucenter/ucenter.test.js index 39326dde8e1af61408a3a6361a45cf2ee90293aa..f382ce8df9036c21c7e38e00fd0b068d8c338c65 100644 --- a/pages/ucenter/ucenter.test.js +++ b/pages/ucenter/ucenter.test.js @@ -1,4 +1,4 @@ -jest.setTimeout(20000); +jest.setTimeout(30000); const PAGE_PATH = '/pages/ucenter/ucenter' describe('ucenter', () => { let page,platform,hasLogin; diff --git a/uni_modules/uni-id-pages/pages/userinfo/userinfo.test.js b/uni_modules/uni-id-pages/pages/userinfo/userinfo.test.js index 514ff2d47458dd0e19ee2056ccd0d6a45246396b..bb3e1453c51ccd20768ba86efbc187356758a023 100644 --- a/uni_modules/uni-id-pages/pages/userinfo/userinfo.test.js +++ b/uni_modules/uni-id-pages/pages/userinfo/userinfo.test.js @@ -1,5 +1,6 @@ // uni-app自动化测试教程: uni-app自动化测试教程: https://uniapp.dcloud.io/collocation/auto/hbuilderx-extension/index const PAGE_PATH = '/uni_modules/uni-id-pages/pages/userinfo/userinfo' +jest.setTimeout(30000); describe('userinfo',() => { let page,hasLogin; beforeAll(async () => {