From 55f7a0dbabae646e2d61d0d0716c4d23fbe8a8c8 Mon Sep 17 00:00:00 2001 From: wangjinxin613 <1749574663@qq.com> Date: Fri, 29 Mar 2024 20:31:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E4=BE=8B=E5=9B=A0=E6=AF=8F=E6=AC=A1=E5=88=87=E6=8D=A2=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E9=83=BD=E8=A7=A6=E5=8F=91=20reLaunch=20=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=E5=A4=9A=E4=B8=AA=E8=BF=9B=E7=A8=8B=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jest.config.js | 15 +++++++-------- .../webview-screenshot/webview-screenshot.test.js | 1 - 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/jest.config.js b/jest.config.js index ac47eaa0..2b54e9ed 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,4 +1,4 @@ -// 自动化测试 +// 自动化测试 module.exports = { testTimeout: 30000, reporters: ['default'], @@ -6,13 +6,12 @@ module.exports = { moduleFileExtensions: ['js', 'json'], rootDir: __dirname, testMatch: ["/pages/**/*test.[jt]s?(x)"], - testPathIgnorePatterns: [ - '/node_modules/', - '/pages/API/download-file/download-file.test.js', - '/pages/API/upload-file/upload-file.test.js', - '/pages/API/get-battery-info/get-battery-info.test.js', - '/pages/webview-screenshot-comparison/webview-screenshot-comparison.test.js', - '/pages/webview-screenshot/webview-screenshot.test.js' + testPathIgnorePatterns: [ + '/node_modules/', + '/pages/API/download-file/download-file.test.js', + '/pages/API/upload-file/upload-file.test.js', + '/pages/API/get-battery-info/get-battery-info.test.js', + '/pages/webview-screenshot-comparison/webview-screenshot-comparison.test.js' ], setupFilesAfterEnv: ['/jest-setup.js'], } diff --git a/pages/webview-screenshot/webview-screenshot.test.js b/pages/webview-screenshot/webview-screenshot.test.js index ce00126d..855dd48a 100644 --- a/pages/webview-screenshot/webview-screenshot.test.js +++ b/pages/webview-screenshot/webview-screenshot.test.js @@ -275,7 +275,6 @@ describe("shot-compare", () => { }); beforeEach(async () => { - page = await program.reLaunch(PAGE_PATH); await page.waitFor(500); }); afterEach(() => { -- GitLab