From 7c761d955ce4aea23c0ee5ac3fdb4a299f908b8a Mon Sep 17 00:00:00 2001 From: GiveMe-A-Name Date: Fri, 20 Dec 2024 13:37:22 +0800 Subject: [PATCH] test: create issue why webpack-test can't pass --- pnpm-lock.yaml | 3 +++ .../configCases/css/css-modules-in-node/test.filter.js | 3 +-- tests/webpack-test/configCases/css/css-modules/test.filter.js | 3 +-- tests/webpack-test/configCases/css/urls/test.filter.js | 3 +-- .../configCases/custom-modules/json-custom/test.filter.js | 3 +-- .../configCases/custom-source-type/localization/test.filter.js | 3 +-- .../remove-export-scope-hoisting/test.filter.js | 3 +-- .../deep-scope-analysis/remove-export/test.filter.js | 3 +-- tests/webpack-test/package.json | 1 + 9 files changed, 11 insertions(+), 14 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 113c2043d23..82205bfcfcd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1030,6 +1030,9 @@ importers: terser-webpack-plugin: specifier: ^5.3.10 version: 5.3.10(@swc/core@1.10.1(@swc/helpers@0.5.15))(webpack@5.94.0(@swc/core@1.10.1(@swc/helpers@0.5.15))(webpack-cli@5.1.4(webpack@5.94.0))) + toml: + specifier: ^3.0.0 + version: 3.0.0 ts-node: specifier: ^10.9.2 version: 10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@20.12.7)(typescript@4.9.5) diff --git a/tests/webpack-test/configCases/css/css-modules-in-node/test.filter.js b/tests/webpack-test/configCases/css/css-modules-in-node/test.filter.js index 77af9d801d3..f6d465e3b1d 100644 --- a/tests/webpack-test/configCases/css/css-modules-in-node/test.filter.js +++ b/tests/webpack-test/configCases/css/css-modules-in-node/test.filter.js @@ -1,3 +1,2 @@ // do not support webpack.ids.DeterministicModuleIdsPlugin -// TODO: Should create a issue for this test -module.exports = () => false; +module.exports = () => 'https://github.com/web-infra-dev/rspack/issues/8772'; diff --git a/tests/webpack-test/configCases/css/css-modules/test.filter.js b/tests/webpack-test/configCases/css/css-modules/test.filter.js index 77af9d801d3..f6d465e3b1d 100644 --- a/tests/webpack-test/configCases/css/css-modules/test.filter.js +++ b/tests/webpack-test/configCases/css/css-modules/test.filter.js @@ -1,3 +1,2 @@ // do not support webpack.ids.DeterministicModuleIdsPlugin -// TODO: Should create a issue for this test -module.exports = () => false; +module.exports = () => 'https://github.com/web-infra-dev/rspack/issues/8772'; diff --git a/tests/webpack-test/configCases/css/urls/test.filter.js b/tests/webpack-test/configCases/css/urls/test.filter.js index 49790b866ac..48885e71df2 100644 --- a/tests/webpack-test/configCases/css/urls/test.filter.js +++ b/tests/webpack-test/configCases/css/urls/test.filter.js @@ -1,2 +1 @@ -// TODO: Should create a issue for this test -module.exports = () => false; +module.exports = () => 'https://github.com/web-infra-dev/rspack/issues/8788'; diff --git a/tests/webpack-test/configCases/custom-modules/json-custom/test.filter.js b/tests/webpack-test/configCases/custom-modules/json-custom/test.filter.js index 042493e42a5..45539604264 100644 --- a/tests/webpack-test/configCases/custom-modules/json-custom/test.filter.js +++ b/tests/webpack-test/configCases/custom-modules/json-custom/test.filter.js @@ -1,2 +1 @@ -// TODO: Should create a issue for this test -module.exports = () => { return false } +module.exports = () => { return 'https://github.com/web-infra-dev/rspack/issues/8785' } diff --git a/tests/webpack-test/configCases/custom-source-type/localization/test.filter.js b/tests/webpack-test/configCases/custom-source-type/localization/test.filter.js index 042493e42a5..c5fa0d8eb40 100644 --- a/tests/webpack-test/configCases/custom-source-type/localization/test.filter.js +++ b/tests/webpack-test/configCases/custom-source-type/localization/test.filter.js @@ -1,2 +1 @@ -// TODO: Should create a issue for this test -module.exports = () => { return false } +module.exports = () => { return 'https://github.com/web-infra-dev/rspack/issues/8786' } diff --git a/tests/webpack-test/configCases/deep-scope-analysis/remove-export-scope-hoisting/test.filter.js b/tests/webpack-test/configCases/deep-scope-analysis/remove-export-scope-hoisting/test.filter.js index 042493e42a5..5d52f3f4430 100644 --- a/tests/webpack-test/configCases/deep-scope-analysis/remove-export-scope-hoisting/test.filter.js +++ b/tests/webpack-test/configCases/deep-scope-analysis/remove-export-scope-hoisting/test.filter.js @@ -1,2 +1 @@ -// TODO: Should create a issue for this test -module.exports = () => { return false } +module.exports = () => { return 'https://github.com/web-infra-dev/rspack/issues/8790' } diff --git a/tests/webpack-test/configCases/deep-scope-analysis/remove-export/test.filter.js b/tests/webpack-test/configCases/deep-scope-analysis/remove-export/test.filter.js index 042493e42a5..5d52f3f4430 100644 --- a/tests/webpack-test/configCases/deep-scope-analysis/remove-export/test.filter.js +++ b/tests/webpack-test/configCases/deep-scope-analysis/remove-export/test.filter.js @@ -1,2 +1 @@ -// TODO: Should create a issue for this test -module.exports = () => { return false } +module.exports = () => { return 'https://github.com/web-infra-dev/rspack/issues/8790' } diff --git a/tests/webpack-test/package.json b/tests/webpack-test/package.json index 3f2fbd22baf..9af8bb65a3f 100644 --- a/tests/webpack-test/package.json +++ b/tests/webpack-test/package.json @@ -59,6 +59,7 @@ "ts-node": "^10.9.2", "typescript": "^4.7.4", "util": "0.12.5", + "toml": "^3.0.0", "uvu": "0.5.6", "webassembly-feature": "^1.3.0", "webpack-dev-server": "5.0.4"