diff --git a/packages/rspack-dev-server/jest.config.js b/packages/rspack-dev-server/jest.config.js index a32166ec185..acb4b7b6a8b 100644 --- a/packages/rspack-dev-server/jest.config.js +++ b/packages/rspack-dev-server/jest.config.js @@ -6,17 +6,22 @@ const config = { testEnvironmentOptions: { url: "http://localhost/" }, - testMatch: ["/tests/*.test.ts", "/tests/e2e/*.test.js"], - testPathIgnorePatterns: [ - // TODO: check why http proxy server throw error with websocket server - "/tests/e2e/allowed-hosts.test.js", - // TODO: check why this test timeout - "/tests/e2e/host.test.js", - // TODO: not support progress plugin event yet - "/tests/e2e/progress.test.js", - // TODO: check why this test throw error when run with other tests - "/tests/e2e/watch-files.test.js" + testMatch: [ + "/tests/*.test.ts", + ...(isWin ? [] : ["/tests/e2e/*.test.js"]) ], + testPathIgnorePatterns: isWin + ? [] + : [ + // TODO: check why http proxy server throw error with websocket server + "/tests/e2e/allowed-hosts.test.js", + // TODO: check why this test timeout + "/tests/e2e/host.test.js", + // TODO: not support progress plugin event yet + "/tests/e2e/progress.test.js", + // TODO: check why this test throw error when run with other tests + "/tests/e2e/watch-files.test.js" + ], cache: false, testTimeout: process.env.CI ? 120000 : 30000, transform: {