Skip to content

Commit

Permalink
chore: enable more webpack-test
Browse files Browse the repository at this point in the history
  • Loading branch information
ahabhgk committed Oct 19, 2023
1 parent 78c0946 commit 43496c7
Show file tree
Hide file tree
Showing 14 changed files with 13 additions and 32 deletions.
4 changes: 0 additions & 4 deletions webpack-test/cases/json/data/test.filter.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -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"]}


4 changes: 0 additions & 4 deletions webpack-test/cases/json/default-default/test.filter.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

module.exports = () => {return false}
module.exports = () => {return "https://github.com/web-infra-dev/rspack/issues/4358"}


Original file line number Diff line number Diff line change
@@ -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"]}


2 changes: 1 addition & 1 deletion webpack-test/cases/json/import-by-name/test.filter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

module.exports = () => {return false}
module.exports = () => {return "https://github.com/web-infra-dev/rspack/issues/4323"}


4 changes: 0 additions & 4 deletions webpack-test/cases/json/import-lazy/test.filter.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -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"]}


4 changes: 0 additions & 4 deletions webpack-test/cases/json/import-with-default/test.filter.js

This file was deleted.

4 changes: 0 additions & 4 deletions webpack-test/cases/json/prototype-methods/test.filter.js

This file was deleted.

3 changes: 2 additions & 1 deletion webpack-test/cases/json/reexport/test.filter.js
Original file line number Diff line number Diff line change
@@ -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"]}


4 changes: 0 additions & 4 deletions webpack-test/cases/json/weird-properties/test.filter.js

This file was deleted.

2 changes: 1 addition & 1 deletion webpack-test/cases/large/many-replacements/test.filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ module.exports = function (config) {
};
*/
module.exports = () => {return false}
module.exports = () => {return tr}


3 changes: 2 additions & 1 deletion webpack-test/scripts/test-metric-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}

Expand Down

0 comments on commit 43496c7

Please sign in to comment.