Skip to content

Commit

Permalink
test: enable dev server test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
LingyuCoder committed Sep 11, 2024
1 parent d405844 commit bc8101b
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions packages/rspack-dev-server/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,22 @@ const config = {
testEnvironmentOptions: {
url: "http://localhost/"
},
testMatch: ["<rootDir>/tests/*.test.ts", "<rootDir>/tests/e2e/*.test.js"],
testPathIgnorePatterns: [
// TODO: check why http proxy server throw error with websocket server
"<rootDir>/tests/e2e/allowed-hosts.test.js",
// TODO: check why this test timeout
"<rootDir>/tests/e2e/host.test.js",
// TODO: not support progress plugin event yet
"<rootDir>/tests/e2e/progress.test.js",
// TODO: check why this test throw error when run with other tests
"<rootDir>/tests/e2e/watch-files.test.js"
testMatch: [
"<rootDir>/tests/*.test.ts",
...(isWin ? [] : ["<rootDir>/tests/e2e/*.test.js"])
],
testPathIgnorePatterns: isWin
? []
: [
// TODO: check why http proxy server throw error with websocket server
"<rootDir>/tests/e2e/allowed-hosts.test.js",
// TODO: check why this test timeout
"<rootDir>/tests/e2e/host.test.js",
// TODO: not support progress plugin event yet
"<rootDir>/tests/e2e/progress.test.js",
// TODO: check why this test throw error when run with other tests
"<rootDir>/tests/e2e/watch-files.test.js"
],
cache: false,
testTimeout: process.env.CI ? 120000 : 30000,
transform: {
Expand Down

0 comments on commit bc8101b

Please sign in to comment.