Skip to content

Commit

Permalink
test(dev-server): enable dev server test cases (#7861)
Browse files Browse the repository at this point in the history
  • Loading branch information
LingyuCoder authored Sep 11, 2024
1 parent 930e351 commit c67d4c2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
27 changes: 13 additions & 14 deletions packages/rspack-dev-server/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,20 @@ const config = {
},
testMatch: [
"<rootDir>/tests/*.test.ts",
...(isWin || process.env.CI ? [] : ["<rootDir>/tests/e2e/*.test.js"])
...(isWin ? [] : ["<rootDir>/tests/e2e/*.test.js"])
],
testPathIgnorePatterns:
isWin || process.env.CI
? []
: [
// 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"
],
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
3 changes: 2 additions & 1 deletion packages/rspack-dev-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"scripts": {
"build": "tsc -b ./tsconfig.build.json",
"dev": "tsc -w -b ./tsconfig.build.json",
"test": "rimraf .test-temp && cross-env NO_COLOR=1 node --expose-gc --max-old-space-size=8192 --experimental-vm-modules ../../node_modules/jest-cli/bin/jest --colors",
"test:install": "cross-env ./node_modules/.bin/puppeteer browsers install chrome",
"test": "pnpm run test:install && cross-env NO_COLOR=1 node --expose-gc --max-old-space-size=8192 --experimental-vm-modules ../../node_modules/jest-cli/bin/jest --colors",
"api-extractor": "api-extractor run --verbose",
"api-extractor:ci": "api-extractor run --verbose || diff temp/api.md etc/api.md"
},
Expand Down

2 comments on commit c67d4c2

@rspack-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Benchmark detail: Open

Name Base (2024-09-11 f5c6a1b) Current Change
10000_development-mode + exec 2.24 s ± 48 ms 2.26 s ± 40 ms +0.65 %
10000_development-mode_hmr + exec 722 ms ± 7.4 ms 726 ms ± 7.1 ms +0.47 %
10000_production-mode + exec 2.86 s ± 47 ms 2.85 s ± 34 ms -0.23 %
arco-pro_development-mode + exec 1.85 s ± 81 ms 1.85 s ± 67 ms -0.11 %
arco-pro_development-mode_hmr + exec 435 ms ± 4 ms 435 ms ± 3.6 ms -0.10 %
arco-pro_production-mode + exec 3.26 s ± 99 ms 3.28 s ± 87 ms +0.66 %
arco-pro_production-mode_generate-package-json-webpack-plugin + exec 3.34 s ± 76 ms 3.35 s ± 69 ms +0.26 %
threejs_development-mode_10x + exec 1.68 s ± 13 ms 1.69 s ± 13 ms +0.53 %
threejs_development-mode_10x_hmr + exec 805 ms ± 13 ms 805 ms ± 17 ms -0.02 %
threejs_production-mode_10x + exec 5.19 s ± 23 ms 5.2 s ± 46 ms +0.25 %

@rspack-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Ran ecosystem CI: Open

suite result
modernjs ✅ success
_selftest ✅ success
nx ❌ failure
rspress ✅ success
rslib ❌ failure
rsbuild ❌ failure
examples ✅ success

Please sign in to comment.