diff --git a/webpack-test/cases/json/data/test.filter.js b/webpack-test/cases/json/data/test.filter.js deleted file mode 100644 index 0e2d717f967..00000000000 --- a/webpack-test/cases/json/data/test.filter.js +++ /dev/null @@ -1,4 +0,0 @@ - -module.exports = () => {return true} - - \ No newline at end of file diff --git a/webpack-test/cases/json/default-default-with-concatenation/test.filter.js b/webpack-test/cases/json/default-default-with-concatenation/test.filter.js index 0557cb116c1..8a4ce83a7aa 100644 --- a/webpack-test/cases/json/default-default-with-concatenation/test.filter.js +++ b/webpack-test/cases/json/default-default-with-concatenation/test.filter.js @@ -1,4 +1,5 @@ +const { FilteredStatus } = require("../../../lib/util/filterUtil") -module.exports = () => {return false} +module.exports = () => {return [FilteredStatus.PARTIAL_PASS, "https://github.com/web-infra-dev/rspack/issues/3823"]} \ No newline at end of file diff --git a/webpack-test/cases/json/default-default/test.filter.js b/webpack-test/cases/json/default-default/test.filter.js deleted file mode 100644 index 0557cb116c1..00000000000 --- a/webpack-test/cases/json/default-default/test.filter.js +++ /dev/null @@ -1,4 +0,0 @@ - -module.exports = () => {return false} - - \ No newline at end of file diff --git a/webpack-test/cases/json/import-assertions-type-json/test.filter.js b/webpack-test/cases/json/import-assertions-type-json/test.filter.js index 0557cb116c1..d4ba32dcf3d 100644 --- a/webpack-test/cases/json/import-assertions-type-json/test.filter.js +++ b/webpack-test/cases/json/import-assertions-type-json/test.filter.js @@ -1,4 +1,4 @@ -module.exports = () => {return false} +module.exports = () => {return "https://github.com/web-infra-dev/rspack/issues/4358"} \ No newline at end of file diff --git a/webpack-test/cases/json/import-by-name-with-concatenation/test.filter.js b/webpack-test/cases/json/import-by-name-with-concatenation/test.filter.js index 0557cb116c1..00510295521 100644 --- a/webpack-test/cases/json/import-by-name-with-concatenation/test.filter.js +++ b/webpack-test/cases/json/import-by-name-with-concatenation/test.filter.js @@ -1,4 +1,5 @@ +const { FilteredStatus } = require("../../../lib/util/filterUtil") -module.exports = () => {return false} +module.exports = () => {return [FilteredStatus.PARTIAL_PASS, "https://github.com/web-infra-dev/rspack/issues/3823, https://github.com/web-infra-dev/rspack/issues/4323"]} \ No newline at end of file diff --git a/webpack-test/cases/json/import-by-name/test.filter.js b/webpack-test/cases/json/import-by-name/test.filter.js index 0557cb116c1..2735e947c45 100644 --- a/webpack-test/cases/json/import-by-name/test.filter.js +++ b/webpack-test/cases/json/import-by-name/test.filter.js @@ -1,4 +1,4 @@ -module.exports = () => {return false} +module.exports = () => {return "https://github.com/web-infra-dev/rspack/issues/4323"} \ No newline at end of file diff --git a/webpack-test/cases/json/import-lazy/test.filter.js b/webpack-test/cases/json/import-lazy/test.filter.js deleted file mode 100644 index 0557cb116c1..00000000000 --- a/webpack-test/cases/json/import-lazy/test.filter.js +++ /dev/null @@ -1,4 +0,0 @@ - -module.exports = () => {return false} - - \ No newline at end of file diff --git a/webpack-test/cases/json/import-with-default-with-concatenation/test.filter.js b/webpack-test/cases/json/import-with-default-with-concatenation/test.filter.js index 0557cb116c1..8a4ce83a7aa 100644 --- a/webpack-test/cases/json/import-with-default-with-concatenation/test.filter.js +++ b/webpack-test/cases/json/import-with-default-with-concatenation/test.filter.js @@ -1,4 +1,5 @@ +const { FilteredStatus } = require("../../../lib/util/filterUtil") -module.exports = () => {return false} +module.exports = () => {return [FilteredStatus.PARTIAL_PASS, "https://github.com/web-infra-dev/rspack/issues/3823"]} \ No newline at end of file diff --git a/webpack-test/cases/json/import-with-default/test.filter.js b/webpack-test/cases/json/import-with-default/test.filter.js deleted file mode 100644 index 0557cb116c1..00000000000 --- a/webpack-test/cases/json/import-with-default/test.filter.js +++ /dev/null @@ -1,4 +0,0 @@ - -module.exports = () => {return false} - - \ No newline at end of file diff --git a/webpack-test/cases/json/prototype-methods/test.filter.js b/webpack-test/cases/json/prototype-methods/test.filter.js deleted file mode 100644 index 0557cb116c1..00000000000 --- a/webpack-test/cases/json/prototype-methods/test.filter.js +++ /dev/null @@ -1,4 +0,0 @@ - -module.exports = () => {return false} - - \ No newline at end of file diff --git a/webpack-test/cases/json/reexport/test.filter.js b/webpack-test/cases/json/reexport/test.filter.js index 0557cb116c1..cadab58b611 100644 --- a/webpack-test/cases/json/reexport/test.filter.js +++ b/webpack-test/cases/json/reexport/test.filter.js @@ -1,4 +1,5 @@ +const { FilteredStatus } = require("../../../lib/util/filterUtil") -module.exports = () => {return false} +module.exports = () => {return [FilteredStatus.PARTIAL_PASS, "https://github.com/web-infra-dev/rspack/issues/4323"]} \ No newline at end of file diff --git a/webpack-test/cases/json/weird-properties/test.filter.js b/webpack-test/cases/json/weird-properties/test.filter.js deleted file mode 100644 index 0557cb116c1..00000000000 --- a/webpack-test/cases/json/weird-properties/test.filter.js +++ /dev/null @@ -1,4 +0,0 @@ - -module.exports = () => {return false} - - \ No newline at end of file diff --git a/webpack-test/cases/large/many-replacements/test.filter.js b/webpack-test/cases/large/many-replacements/test.filter.js index 6fb7deae5b2..f26da2cb432 100644 --- a/webpack-test/cases/large/many-replacements/test.filter.js +++ b/webpack-test/cases/large/many-replacements/test.filter.js @@ -5,6 +5,6 @@ module.exports = function (config) { }; */ -module.exports = () => {return false} +module.exports = () => {return tr} \ No newline at end of file diff --git a/webpack-test/scripts/test-metric-util.js b/webpack-test/scripts/test-metric-util.js index b9857a92919..d161657ab91 100644 --- a/webpack-test/scripts/test-metric-util.js +++ b/webpack-test/scripts/test-metric-util.js @@ -60,7 +60,8 @@ function renderAllTestsToMarkdown(jsonObj) { const testResults = jsonObj["testResults"]; return testResults .flatMap(testSuite => testSuite.assertionResults) - .map((test, index) => `${index + 1}. ${renderTestToMarkdown(test.fullName)}`) + // use 1\. to break GitHub markdown list auto ordering + .map((test, index) => `${index + 1}\. ${renderTestToMarkdown(test.fullName)}`) .join('\n') }