diff --git a/.github/workflows/reusable-build-test.yml b/.github/workflows/reusable-build-test.yml index 3ee2b63dd25b..19a3909d9653 100644 --- a/.github/workflows/reusable-build-test.yml +++ b/.github/workflows/reusable-build-test.yml @@ -53,7 +53,7 @@ jobs: with: # Jammy uses ubuntu 22.04 # If this is to change, make sure to upgrade the ubuntu version in GitHub Actions - image: mcr.microsoft.com/playwright:v1.47.0-jammy + image: mcr.microsoft.com/playwright:v1.53.0-jammy # .cache is required by download artifact, and mount in ./.github/actions/docker/run # .tool_cache is required by pnpm options: -v ${{ runner.tool_cache }}:${{runner.tool_cache}} diff --git a/packages/rspack-test-tools/tests/watchCases/compilation/remove-module/rspack.config.js b/packages/rspack-test-tools/tests/watchCases/compilation/remove-module/rspack.config.js index 303e7ca64bb9..7cefe032bc1e 100644 --- a/packages/rspack-test-tools/tests/watchCases/compilation/remove-module/rspack.config.js +++ b/packages/rspack-test-tools/tests/watchCases/compilation/remove-module/rspack.config.js @@ -1,40 +1,37 @@ const path = require("path"); class Plugin { - apply(compiler) { - const moduleMap = new Map(); + apply(compiler) { + const moduleMap = new Map(); - compiler.hooks.compilation.tap("PLUGIN", compilation => { - compilation.hooks.finishModules.tap("PLUGIN", modules => { - for (const module of modules) { - if (moduleMap.has(module.resource)) { - const timestamp = moduleMap.get(module.resource); - // index.js only run loader by once. - expect(module.buildInfo.timestamp).toBe(timestamp); - } else { - moduleMap.set(module.resource, module.buildInfo.timestamp); - } - } - }); - }); - } + compiler.hooks.compilation.tap("PLUGIN", compilation => { + compilation.hooks.finishModules.tap("PLUGIN", modules => { + for (const module of modules) { + if (moduleMap.has(module.resource)) { + const timestamp = moduleMap.get(module.resource); + // index.js only run loader by once. + expect(module.buildInfo.timestamp).toBe(timestamp); + } else { + moduleMap.set(module.resource, module.buildInfo.timestamp); + } + } + }); + }); + } } module.exports = { - plugins: [ - new Plugin() - ], - module: { - rules: [ - { - test: /\.js$/, - use: [ - { - loader: path.join(__dirname, "loader.js"), - } - ] - } - ] - } + plugins: [new Plugin()], + module: { + rules: [ + { + test: /\.js$/, + use: [ + { + loader: path.join(__dirname, "loader.js") + } + ] + } + ] + } }; - diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 45658326186c..048bad89c6e8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -677,8 +677,8 @@ importers: specifier: ^7.27.1 version: 7.27.1(@babel/core@7.27.4) '@playwright/test': - specifier: 1.47.0 - version: 1.47.0 + specifier: 1.53.0 + version: 1.53.0 '@rspack/core': specifier: workspace:* version: link:../../packages/rspack @@ -2403,8 +2403,8 @@ packages: resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} engines: {node: '>=14'} - '@playwright/test@1.47.0': - resolution: {integrity: sha512-SgAdlSwYVpToI4e/IH19IHHWvoijAYH5hu2MWSXptRypLSnzj51PcGD+rsOXFayde4P9ZLi+loXVwArg6IUkCA==} + '@playwright/test@1.53.0': + resolution: {integrity: sha512-15hjKreZDcp7t6TL/7jkAo6Df5STZN09jGiv5dbP9A6vMVncXRqE7/B2SncsyOwrkZRBH2i6/TPOL8BVmm3c7w==} engines: {node: '>=18'} hasBin: true @@ -6224,13 +6224,13 @@ packages: pkg-types@2.1.0: resolution: {integrity: sha512-wmJwA+8ihJixSoHKxZJRBQG1oY8Yr9pGLzRmSsNms0iNWyHHAlZCa7mmKiFR10YPZuz/2k169JiS/inOjBCZ2A==} - playwright-core@1.47.0: - resolution: {integrity: sha512-1DyHT8OqkcfCkYUD9zzUTfg7EfTd+6a8MkD/NWOvjo0u/SCNd5YmY/lJwFvUZOxJbWNds+ei7ic2+R/cRz/PDg==} + playwright-core@1.53.0: + resolution: {integrity: sha512-mGLg8m0pm4+mmtB7M89Xw/GSqoNC+twivl8ITteqvAndachozYe2ZA7srU6uleV1vEdAHYqjq+SV8SNxRRFYBw==} engines: {node: '>=18'} hasBin: true - playwright@1.47.0: - resolution: {integrity: sha512-jOWiRq2pdNAX/mwLiwFYnPHpEZ4rM+fRSQpRHwEwZlP2PUANvL3+aJOF/bvISMhFD30rqMxUB4RJx9aQbfh4Ww==} + playwright@1.53.0: + resolution: {integrity: sha512-ghGNnIEYZC4E+YtclRn4/p6oYbdPiASELBIYkBXfaTVKreQUYbMUYQDwS12a8F0/HtIjr/CkGjtwABeFPGcS4Q==} engines: {node: '>=18'} hasBin: true @@ -9499,9 +9499,9 @@ snapshots: '@pkgjs/parseargs@0.11.0': optional: true - '@playwright/test@1.47.0': + '@playwright/test@1.53.0': dependencies: - playwright: 1.47.0 + playwright: 1.53.0 '@polka/url@1.0.0-next.29': {} @@ -14147,11 +14147,11 @@ snapshots: exsolve: 1.0.5 pathe: 2.0.3 - playwright-core@1.47.0: {} + playwright-core@1.53.0: {} - playwright@1.47.0: + playwright@1.53.0: dependencies: - playwright-core: 1.47.0 + playwright-core: 1.53.0 optionalDependencies: fsevents: 2.3.2 diff --git a/tests/e2e/package.json b/tests/e2e/package.json index a2f76cc9ed57..22890577ba85 100644 --- a/tests/e2e/package.json +++ b/tests/e2e/package.json @@ -9,7 +9,7 @@ "devDependencies": { "@babel/core": "^7.27.4", "@babel/preset-react": "^7.27.1", - "@playwright/test": "1.47.0", + "@playwright/test": "1.53.0", "core-js": "3.43.0", "@rspack/core": "workspace:*", "@rspack/dev-server": "~1.1.3",