Skip to content

Commit

Permalink
feat: skip more test case
Browse files Browse the repository at this point in the history
  • Loading branch information
IWANABETHATGUY committed Apr 11, 2023
1 parent a56f78c commit 2eba002
Show file tree
Hide file tree
Showing 544 changed files with 2,195 additions and 4,678 deletions.
9 changes: 6 additions & 3 deletions webpack-test/Examples.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@
const path = require("path");
const fs = require("graceful-fs");

describe("Examples", () => {
const basePath = path.join(__dirname, "..", "examples");
const examples = require("../examples/examples.js");
describe.skip("Examples", () => {
it("filtered", () => {})
return
// TODO: add webpack example test recover after we have these module
// const basePath = path.join(__dirname, "..", "examples");
// const examples = require("../examples/examples.js");

examples.forEach(examplePath => {
const filterPath = path.join(examplePath, "test.filter.js");
Expand Down
23 changes: 12 additions & 11 deletions webpack-test/SemVer.unittest.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
"use strict";

const {
parseVersion,
parseVersionRuntimeCode,
versionLt,
versionLtRuntimeCode,
parseRange,
rangeToString,
rangeToStringRuntimeCode,
satisfy,
satisfyRuntimeCode
} = require("../lib/util/semver");
// TODO: recover after we have this utils
// const {
// parseVersion,
// parseVersionRuntimeCode,
// versionLt,
// versionLtRuntimeCode,
// parseRange,
// rangeToString,
// rangeToStringRuntimeCode,
// satisfy,
// satisfyRuntimeCode
// } = require("../lib/util/semver");

describe("SemVer", () => {
const createRuntimeFunction = runtimeCodeFunction => {
Expand Down
2 changes: 1 addition & 1 deletion webpack-test/StatsTestCases.basictest.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const tests = fs
const testDirectory = path.join(base, testName);
const filterPath = path.join(testDirectory, "test.filter.js");
if (fs.existsSync(filterPath) && !require(filterPath)()) {
describe.skip(testName, () => it("filtered"));
describe.skip(testName, () => it("filtered", () => {}));
return false;
}
return true;
Expand Down
2 changes: 1 addition & 1 deletion webpack-test/Watch.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const path = require("path");
const webpack = require("@rspack/core").rspack;
const { createFsFromVolume, Volume } = require("memfs");

describe("Watch", () => {
describe.skip("Watch", () => {
jest.setTimeout(10000);

it("should only compile a single time", done => {
Expand Down
2 changes: 1 addition & 1 deletion webpack-test/WatchClose.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe("WatchClose", () => {
let watcher;

beforeEach(() => {
const webpack = require("../");
const webpack = require("@rspack/core").rspack;
compiler = webpack({
mode: "development",
entry: filePath,
Expand Down
2 changes: 1 addition & 1 deletion webpack-test/WatchDetection.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { createFsFromVolume, Volume } = require("memfs");

const webpack = require("@rspack/core").rspack;

describe("WatchDetection", () => {
describe.skip("WatchDetection", () => {
if (process.env.NO_WATCH_TESTS) {
it.skip("long running tests excluded", () => {});
return;
Expand Down
4,660 changes: 0 additions & 4,660 deletions webpack-test/__snapshots__/StatsTestCases.basictest.js.snap

This file was deleted.

4 changes: 4 additions & 0 deletions webpack-test/cases/amd/define-needs-module/test.filter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

module.exports = () => {return false}


4 changes: 4 additions & 0 deletions webpack-test/cases/amd/namedModules/test.filter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

module.exports = () => {return false}


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

module.exports = () => {return false}


4 changes: 4 additions & 0 deletions webpack-test/cases/async-modules/double-import/test.filter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

module.exports = () => {return false}


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

/*
module.exports = function (config) {
// In node 10 v8 has a bug which inserts an additional micro-tick into async functions
return !process.version.startsWith("v10.");
};
*/
module.exports = () => {return false}


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

module.exports = () => {return false}


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

module.exports = () => {return false}


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

module.exports = () => {return false}


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

module.exports = () => {return false}


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

module.exports = () => {return false}


4 changes: 4 additions & 0 deletions webpack-test/cases/chunks/circular-correctness/test.filter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

module.exports = () => {return false}


4 changes: 4 additions & 0 deletions webpack-test/cases/chunks/context-weak/test.filter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

module.exports = () => {return false}


4 changes: 4 additions & 0 deletions webpack-test/cases/chunks/context/test.filter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

module.exports = () => {return false}


4 changes: 4 additions & 0 deletions webpack-test/cases/chunks/import-circle/test.filter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

module.exports = () => {return false}


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

module.exports = () => {return false}


4 changes: 4 additions & 0 deletions webpack-test/cases/chunks/import-context/test.filter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

module.exports = () => {return false}


4 changes: 4 additions & 0 deletions webpack-test/cases/chunks/import/test.filter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

module.exports = () => {return false}


4 changes: 4 additions & 0 deletions webpack-test/cases/chunks/inline-options/test.filter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

module.exports = () => {return false}


4 changes: 4 additions & 0 deletions webpack-test/cases/chunks/issue-2443/test.filter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

module.exports = () => {return false}


4 changes: 4 additions & 0 deletions webpack-test/cases/chunks/issue-5153/test.filter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

module.exports = () => {return false}


4 changes: 4 additions & 0 deletions webpack-test/cases/chunks/named-chunks/test.filter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

module.exports = () => {return false}


4 changes: 4 additions & 0 deletions webpack-test/cases/chunks/nested-in-empty/test.filter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

module.exports = () => {return false}


4 changes: 4 additions & 0 deletions webpack-test/cases/chunks/parsing/test.filter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

module.exports = () => {return false}


7 changes: 7 additions & 0 deletions webpack-test/cases/chunks/runtime/test.filter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@

/*
module.exports = function(config) {
// This test can't run in development mode as it depends on the flagIncludedChunks optimization
return config.mode !== "development";
};
*/
module.exports = () => {return false}


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

module.exports = () => {return false}


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

module.exports = () => {return false}


4 changes: 4 additions & 0 deletions webpack-test/cases/chunks/weak-dependencies/test.filter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

module.exports = () => {return false}


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

module.exports = () => {return false}


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

module.exports = () => {return false}


4 changes: 4 additions & 0 deletions webpack-test/cases/cjs-tree-shaking/bailouts/test.filter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

module.exports = () => {return false}


4 changes: 4 additions & 0 deletions webpack-test/cases/cjs-tree-shaking/cjs-to-esm/test.filter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

module.exports = () => {return false}


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

module.exports = () => {return false}


4 changes: 4 additions & 0 deletions webpack-test/cases/cjs-tree-shaking/esm-to-cjs/test.filter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

module.exports = () => {return false}


4 changes: 4 additions & 0 deletions webpack-test/cases/cjs-tree-shaking/exports/test.filter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

module.exports = () => {return false}


4 changes: 4 additions & 0 deletions webpack-test/cases/cjs-tree-shaking/importing/test.filter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

module.exports = () => {return false}


4 changes: 4 additions & 0 deletions webpack-test/cases/cjs-tree-shaking/mjs/test.filter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

module.exports = () => {return false}


4 changes: 4 additions & 0 deletions webpack-test/cases/cjs-tree-shaking/mutate/test.filter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

module.exports = () => {return false}


4 changes: 4 additions & 0 deletions webpack-test/cases/cjs-tree-shaking/namespace/test.filter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

module.exports = () => {return false}


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

module.exports = () => {return false}


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

module.exports = () => {return false}


4 changes: 4 additions & 0 deletions webpack-test/cases/cjs-tree-shaking/objects/test.filter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

module.exports = () => {return false}


4 changes: 4 additions & 0 deletions webpack-test/cases/cjs-tree-shaking/parsing/test.filter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

module.exports = () => {return false}


4 changes: 4 additions & 0 deletions webpack-test/cases/cjs-tree-shaking/reexports/test.filter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

module.exports = () => {return false}


4 changes: 4 additions & 0 deletions webpack-test/cases/cjs-tree-shaking/transpiled/test.filter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

module.exports = () => {return false}


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

module.exports = () => {return false}


4 changes: 4 additions & 0 deletions webpack-test/cases/code-generation/issue-12232/test.filter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

module.exports = () => {return false}


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

module.exports = () => {return false}


4 changes: 4 additions & 0 deletions webpack-test/cases/compile/deduplication/test.filter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

module.exports = () => {return false}


4 changes: 4 additions & 0 deletions webpack-test/cases/compile/error-hide-stack/test.filter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

module.exports = () => {return false}


4 changes: 4 additions & 0 deletions webpack-test/cases/compile/issue2221/test.filter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

module.exports = () => {return false}


Loading

0 comments on commit 2eba002

Please sign in to comment.