diff --git a/jest.config.js b/jest.config.js index ac47eaa0f29fe01e5b3bdf442a99c3866c06a8bb..2b54e9ed5ba6291f7c5cf843f49f60bb29c63782 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 ce00126ddd6e78ec9bfa75b137cb3db75882bba4..855dd48a090fd5b3030cb0234239f99b68ea6c61 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(() => {