From d0411ebd6b7b04063e1cac151f941391c64a95de Mon Sep 17 00:00:00 2001 From: Hana Date: Fri, 2 Feb 2024 15:19:50 +0800 Subject: [PATCH] chore: init --- .../hotCases/recover/recover-after-error/a.js | 6 -- .../recover-after-error/changed-file.js | 6 -- .../recover/recover-after-error/index.js | 20 ------ .../recover/recover-after-parsing-error/a.js | 6 -- .../changed-file.js | 6 -- .../recover-after-parsing-error/errors1.js | 4 -- .../recover-after-parsing-error/index.js | 20 ------ .../changed-file.js | 6 -- .../index.js | 20 ------ .../inner.js | 3 - .../module.js | 9 --- .../runtime/import-after-download/index.js | 5 +- packages/rspack/tests/hotCases/update.js | 13 +--- .../worker/remove-add-worker/changed-file.js | 6 -- .../worker/remove-add-worker/compute.js | 70 ------------------- .../worker/remove-add-worker/index.js | 22 ------ .../worker/remove-add-worker/test.filter.js | 5 -- .../worker/remove-add-worker/worker.js | 8 --- .../worker/update-in-worker/changed-file.js | 6 -- .../hotCases/worker/update-in-worker/index.js | 18 ----- .../worker/update-in-worker/module.js | 7 -- .../worker/update-in-worker/test.filter.js | 5 -- .../worker/update-in-worker/worker.js | 28 -------- scripts/test/diff-exclude.cjs | 9 ++- .../child-compiler/issue-9706/test.filter.js | 1 - .../test.filter.js | 3 +- .../recover-after-error/test.filter.js | 3 - .../recover-after-loader-error/test.filter.js | 3 - .../test.filter.js | 3 - .../test.filter.js | 3 - .../recover-after-self-error/test.filter.js | 3 +- .../move-between-runtime/test.filter.js | 3 +- .../worker/remove-add-worker/test.filter.js | 6 -- .../worker/update-in-worker/test.filter.js | 6 -- 34 files changed, 15 insertions(+), 327 deletions(-) delete mode 100644 packages/rspack/tests/hotCases/recover/recover-after-error/a.js delete mode 100644 packages/rspack/tests/hotCases/recover/recover-after-error/changed-file.js delete mode 100644 packages/rspack/tests/hotCases/recover/recover-after-error/index.js delete mode 100644 packages/rspack/tests/hotCases/recover/recover-after-parsing-error/a.js delete mode 100644 packages/rspack/tests/hotCases/recover/recover-after-parsing-error/changed-file.js delete mode 100644 packages/rspack/tests/hotCases/recover/recover-after-parsing-error/errors1.js delete mode 100644 packages/rspack/tests/hotCases/recover/recover-after-parsing-error/index.js delete mode 100644 packages/rspack/tests/hotCases/recover/recover-after-removal-self-accepted/changed-file.js delete mode 100644 packages/rspack/tests/hotCases/recover/recover-after-removal-self-accepted/index.js delete mode 100644 packages/rspack/tests/hotCases/recover/recover-after-removal-self-accepted/inner.js delete mode 100644 packages/rspack/tests/hotCases/recover/recover-after-removal-self-accepted/module.js delete mode 100644 packages/rspack/tests/hotCases/worker/remove-add-worker/changed-file.js delete mode 100644 packages/rspack/tests/hotCases/worker/remove-add-worker/compute.js delete mode 100644 packages/rspack/tests/hotCases/worker/remove-add-worker/index.js delete mode 100644 packages/rspack/tests/hotCases/worker/remove-add-worker/test.filter.js delete mode 100644 packages/rspack/tests/hotCases/worker/remove-add-worker/worker.js delete mode 100644 packages/rspack/tests/hotCases/worker/update-in-worker/changed-file.js delete mode 100644 packages/rspack/tests/hotCases/worker/update-in-worker/index.js delete mode 100644 packages/rspack/tests/hotCases/worker/update-in-worker/module.js delete mode 100644 packages/rspack/tests/hotCases/worker/update-in-worker/test.filter.js delete mode 100644 packages/rspack/tests/hotCases/worker/update-in-worker/worker.js delete mode 100644 webpack-test/hotCases/recover/recover-after-error/test.filter.js delete mode 100644 webpack-test/hotCases/recover/recover-after-loader-error/test.filter.js delete mode 100644 webpack-test/hotCases/recover/recover-after-parsing-error/test.filter.js delete mode 100644 webpack-test/hotCases/recover/recover-after-removal-self-accepted/test.filter.js diff --git a/packages/rspack/tests/hotCases/recover/recover-after-error/a.js b/packages/rspack/tests/hotCases/recover/recover-after-error/a.js deleted file mode 100644 index 0ad56542090..00000000000 --- a/packages/rspack/tests/hotCases/recover/recover-after-error/a.js +++ /dev/null @@ -1,6 +0,0 @@ -export default 1; ---- -export default 2; -throw new Error("Failed"); ---- -export default 3; diff --git a/packages/rspack/tests/hotCases/recover/recover-after-error/changed-file.js b/packages/rspack/tests/hotCases/recover/recover-after-error/changed-file.js deleted file mode 100644 index 6c5656fc5dd..00000000000 --- a/packages/rspack/tests/hotCases/recover/recover-after-error/changed-file.js +++ /dev/null @@ -1,6 +0,0 @@ -// TODO: remove this file after cache. -const path = require('path'); - -module.exports = [ - path.resolve(__dirname, './a.js') -] diff --git a/packages/rspack/tests/hotCases/recover/recover-after-error/index.js b/packages/rspack/tests/hotCases/recover/recover-after-error/index.js deleted file mode 100644 index 2b3b0287679..00000000000 --- a/packages/rspack/tests/hotCases/recover/recover-after-error/index.js +++ /dev/null @@ -1,20 +0,0 @@ -import a from "./a"; - -it("should abort when module is not accepted", (done) => { - expect(a).toBe(1); - NEXT(require("../../update")(done, { - ignoreErrored: true - }, () => { - expect(a).toBe(1); - NEXT(require("../../update")(done, { - ignoreErrored: true - }, () => { - expect(a).toBe(3); - done(); - })); - })); -}); - -if(module.hot) { - module.hot.accept("./a"); -} diff --git a/packages/rspack/tests/hotCases/recover/recover-after-parsing-error/a.js b/packages/rspack/tests/hotCases/recover/recover-after-parsing-error/a.js deleted file mode 100644 index bc111d3376c..00000000000 --- a/packages/rspack/tests/hotCases/recover/recover-after-parsing-error/a.js +++ /dev/null @@ -1,6 +0,0 @@ -export default 1; ---- -]}); -export default 2; ---- -export default 3; diff --git a/packages/rspack/tests/hotCases/recover/recover-after-parsing-error/changed-file.js b/packages/rspack/tests/hotCases/recover/recover-after-parsing-error/changed-file.js deleted file mode 100644 index 6c5656fc5dd..00000000000 --- a/packages/rspack/tests/hotCases/recover/recover-after-parsing-error/changed-file.js +++ /dev/null @@ -1,6 +0,0 @@ -// TODO: remove this file after cache. -const path = require('path'); - -module.exports = [ - path.resolve(__dirname, './a.js') -] diff --git a/packages/rspack/tests/hotCases/recover/recover-after-parsing-error/errors1.js b/packages/rspack/tests/hotCases/recover/recover-after-parsing-error/errors1.js deleted file mode 100644 index 58e2e24f6c3..00000000000 --- a/packages/rspack/tests/hotCases/recover/recover-after-parsing-error/errors1.js +++ /dev/null @@ -1,4 +0,0 @@ -module.exports = [ - // TODO: error msg is different from webpack - [/Expression expected/] -] \ No newline at end of file diff --git a/packages/rspack/tests/hotCases/recover/recover-after-parsing-error/index.js b/packages/rspack/tests/hotCases/recover/recover-after-parsing-error/index.js deleted file mode 100644 index 2b3b0287679..00000000000 --- a/packages/rspack/tests/hotCases/recover/recover-after-parsing-error/index.js +++ /dev/null @@ -1,20 +0,0 @@ -import a from "./a"; - -it("should abort when module is not accepted", (done) => { - expect(a).toBe(1); - NEXT(require("../../update")(done, { - ignoreErrored: true - }, () => { - expect(a).toBe(1); - NEXT(require("../../update")(done, { - ignoreErrored: true - }, () => { - expect(a).toBe(3); - done(); - })); - })); -}); - -if(module.hot) { - module.hot.accept("./a"); -} diff --git a/packages/rspack/tests/hotCases/recover/recover-after-removal-self-accepted/changed-file.js b/packages/rspack/tests/hotCases/recover/recover-after-removal-self-accepted/changed-file.js deleted file mode 100644 index b84e7c3f287..00000000000 --- a/packages/rspack/tests/hotCases/recover/recover-after-removal-self-accepted/changed-file.js +++ /dev/null @@ -1,6 +0,0 @@ -// TODO: remove this file after cache. -const path = require('path'); - -module.exports = [ - path.resolve(__dirname, './module.js') -] diff --git a/packages/rspack/tests/hotCases/recover/recover-after-removal-self-accepted/index.js b/packages/rspack/tests/hotCases/recover/recover-after-removal-self-accepted/index.js deleted file mode 100644 index 9a7ca9e5680..00000000000 --- a/packages/rspack/tests/hotCases/recover/recover-after-removal-self-accepted/index.js +++ /dev/null @@ -1,20 +0,0 @@ -import ok from "./module"; - -it("should abort when module is not accepted", done => { - expect(ok).toBe("ok1-inner"); - NEXT( - require("../../update")(done, true, () => { - expect(ok).toBe("ok2"); - NEXT( - require("../../update")(done, true, () => { - expect(ok).toBe("ok3-inner"); - done(); - }) - ); - }) - ); -}); - -if (module.hot) { - module.hot.accept("./module"); -} diff --git a/packages/rspack/tests/hotCases/recover/recover-after-removal-self-accepted/inner.js b/packages/rspack/tests/hotCases/recover/recover-after-removal-self-accepted/inner.js deleted file mode 100644 index 8902ee1b3d4..00000000000 --- a/packages/rspack/tests/hotCases/recover/recover-after-removal-self-accepted/inner.js +++ /dev/null @@ -1,3 +0,0 @@ -module.hot.accept(); - -export default "-inner"; diff --git a/packages/rspack/tests/hotCases/recover/recover-after-removal-self-accepted/module.js b/packages/rspack/tests/hotCases/recover/recover-after-removal-self-accepted/module.js deleted file mode 100644 index de7faaf2a9e..00000000000 --- a/packages/rspack/tests/hotCases/recover/recover-after-removal-self-accepted/module.js +++ /dev/null @@ -1,9 +0,0 @@ -import inner from "./inner"; - -export default "ok1" + inner; ---- -export default "ok2"; ---- -import inner from "./inner"; - -export default "ok3" + inner; diff --git a/packages/rspack/tests/hotCases/runtime/import-after-download/index.js b/packages/rspack/tests/hotCases/runtime/import-after-download/index.js index dec2f7a9d2d..29019fbf773 100644 --- a/packages/rspack/tests/hotCases/runtime/import-after-download/index.js +++ b/packages/rspack/tests/hotCases/runtime/import-after-download/index.js @@ -23,9 +23,8 @@ it("should download the missing update chunk on import", () => { expect(chunk.default).toBe(10); expect(unaffectedChunk.default).toBe(10); return module.hot.apply().then(() => { - // TODO - // expect(value).toBe(2); - // expect(chunk.default).toBe(20); + expect(value).toBe(2); + expect(chunk.default).toBe(20); expect(unaffectedChunk.default).toBe(10); }); }); diff --git a/packages/rspack/tests/hotCases/update.js b/packages/rspack/tests/hotCases/update.js index 484b0606dfd..8e21026f2dd 100644 --- a/packages/rspack/tests/hotCases/update.js +++ b/packages/rspack/tests/hotCases/update.js @@ -1,18 +1,11 @@ module.exports = function (done, options, callback) { return function (err, stats) { - if (err) { - return done(err); - } - + if (err) return done(err); module.hot .check(options || true) .then(updatedModules => { - if (!updatedModules) { - return done(Error("no update available")); - } - if (callback) { - return callback(stats); - } + if (!updatedModules) return done(new Error("No update available")); + if (callback) callback(stats); }) .catch(err => { done(err); diff --git a/packages/rspack/tests/hotCases/worker/remove-add-worker/changed-file.js b/packages/rspack/tests/hotCases/worker/remove-add-worker/changed-file.js deleted file mode 100644 index bbcc44d3686..00000000000 --- a/packages/rspack/tests/hotCases/worker/remove-add-worker/changed-file.js +++ /dev/null @@ -1,6 +0,0 @@ -// TODO: remove this file after cache. -const path = require('path'); - -module.exports = [ - path.resolve(__dirname, './compute.js') -] diff --git a/packages/rspack/tests/hotCases/worker/remove-add-worker/compute.js b/packages/rspack/tests/hotCases/worker/remove-add-worker/compute.js deleted file mode 100644 index aaa08452ea8..00000000000 --- a/packages/rspack/tests/hotCases/worker/remove-add-worker/compute.js +++ /dev/null @@ -1,70 +0,0 @@ -export default () => Promise.resolve(42); ---- -export default async () => { - const worker = new Worker(new URL("worker.js", import.meta.url)); - const result = await new Promise((resolve, reject) => { - worker.onmessage = ({ data }) => { - if(typeof data === "string") { - reject(new Error(data)); - } else { - resolve(data); - } - }; - worker.postMessage("compute"); - }); - await worker.terminate(); - return result; -} ---- -export default () => Promise.resolve(42); ---- -export default async () => { - const worker = new Worker(new URL("worker.js", import.meta.url)); - const result = await new Promise((resolve, reject) => { - worker.onmessage = ({ data }) => { - if(typeof data === "string") { - reject(new Error(data)); - } else { - resolve(data); - } - }; - worker.postMessage("compute"); - }); - await worker.terminate(); - return result; -} ---- -if(Math.random() < 0) { - new Worker(new URL("worker.js?1", import.meta.url)); -} -export default async () => { - const worker = new Worker(new URL("worker.js", import.meta.url)); - const result = await new Promise((resolve, reject) => { - worker.onmessage = ({ data }) => { - if(typeof data === "string") { - reject(new Error(data)); - } else { - resolve(data); - } - }; - worker.postMessage("compute"); - }); - await worker.terminate(); - return result; -} ---- -export default async () => { - const worker = new Worker(new URL("worker.js", import.meta.url)); - const result = await new Promise((resolve, reject) => { - worker.onmessage = ({ data }) => { - if(typeof data === "string") { - reject(new Error(data)); - } else { - resolve(data); - } - }; - worker.postMessage("compute"); - }); - await worker.terminate(); - return result; -} diff --git a/packages/rspack/tests/hotCases/worker/remove-add-worker/index.js b/packages/rspack/tests/hotCases/worker/remove-add-worker/index.js deleted file mode 100644 index 0499b18fe10..00000000000 --- a/packages/rspack/tests/hotCases/worker/remove-add-worker/index.js +++ /dev/null @@ -1,22 +0,0 @@ -import compute from "./compute"; - -const update = () => - new Promise((resolve, reject) => { - NEXT(require("../../update")(reject, true, resolve)); - }); - -it("should support adding and removing runtimes", async () => { - expect(await compute()).toBe(42); - await update(); - expect(await compute()).toBe(42); - await update(); - expect(await compute()).toBe(42); - await update(); - expect(await compute()).toBe(42); - await update(); - expect(await compute()).toBe(42); - await update(); - expect(await compute()).toBe(42); -}); - -import.meta.webpackHot.accept("./compute"); diff --git a/packages/rspack/tests/hotCases/worker/remove-add-worker/test.filter.js b/packages/rspack/tests/hotCases/worker/remove-add-worker/test.filter.js deleted file mode 100644 index 415af260705..00000000000 --- a/packages/rspack/tests/hotCases/worker/remove-add-worker/test.filter.js +++ /dev/null @@ -1,5 +0,0 @@ -var supportsWorker = require("../../../helpers/supportsWorker"); - -module.exports = function (config) { - return supportsWorker() && config.target !== "async-node"; -}; diff --git a/packages/rspack/tests/hotCases/worker/remove-add-worker/worker.js b/packages/rspack/tests/hotCases/worker/remove-add-worker/worker.js deleted file mode 100644 index 57ed69dc1fa..00000000000 --- a/packages/rspack/tests/hotCases/worker/remove-add-worker/worker.js +++ /dev/null @@ -1,8 +0,0 @@ -self.onmessage = async ({ data }) => { - try { - if (data !== "compute") throw new Error("expected compute message"); - self.postMessage(42); - } catch (e) { - self.postMessage("error: " + e.stack); - } -}; diff --git a/packages/rspack/tests/hotCases/worker/update-in-worker/changed-file.js b/packages/rspack/tests/hotCases/worker/update-in-worker/changed-file.js deleted file mode 100644 index b84e7c3f287..00000000000 --- a/packages/rspack/tests/hotCases/worker/update-in-worker/changed-file.js +++ /dev/null @@ -1,6 +0,0 @@ -// TODO: remove this file after cache. -const path = require('path'); - -module.exports = [ - path.resolve(__dirname, './module.js') -] diff --git a/packages/rspack/tests/hotCases/worker/update-in-worker/index.js b/packages/rspack/tests/hotCases/worker/update-in-worker/index.js deleted file mode 100644 index af333e73e64..00000000000 --- a/packages/rspack/tests/hotCases/worker/update-in-worker/index.js +++ /dev/null @@ -1,18 +0,0 @@ -it("should support hot module replacement in WebWorkers", done => { - const worker = new Worker(new URL("worker.js", import.meta.url)); - worker.onmessage = ({ data: msg }) => { - switch (msg) { - case "next": - NEXT(() => { - worker.postMessage("next"); - }); - break; - case "done": - Promise.resolve(worker.terminate()).then(() => done(), done); - break; - default: - throw new Error(`Unexpected message: ${msg}`); - } - }; - worker.postMessage("test"); -}); diff --git a/packages/rspack/tests/hotCases/worker/update-in-worker/module.js b/packages/rspack/tests/hotCases/worker/update-in-worker/module.js deleted file mode 100644 index 05b3ed818e2..00000000000 --- a/packages/rspack/tests/hotCases/worker/update-in-worker/module.js +++ /dev/null @@ -1,7 +0,0 @@ -export default 1; ---- -export default 2; ---- -export default 3; ---- -export default 42; diff --git a/packages/rspack/tests/hotCases/worker/update-in-worker/test.filter.js b/packages/rspack/tests/hotCases/worker/update-in-worker/test.filter.js deleted file mode 100644 index 7039623344e..00000000000 --- a/packages/rspack/tests/hotCases/worker/update-in-worker/test.filter.js +++ /dev/null @@ -1,5 +0,0 @@ -var supportsWorker = require("../../../helpers/supportsWorker"); - -module.exports = function (config) { - return supportsWorker(); -}; diff --git a/packages/rspack/tests/hotCases/worker/update-in-worker/worker.js b/packages/rspack/tests/hotCases/worker/update-in-worker/worker.js deleted file mode 100644 index 3af3bbacb3f..00000000000 --- a/packages/rspack/tests/hotCases/worker/update-in-worker/worker.js +++ /dev/null @@ -1,28 +0,0 @@ -import module from "./module"; - -let counter = 1; - -self.onmessage = async ({ data: msg }) => { - try { - switch (msg) { - case "next": - await import.meta.webpackHot.check(true); - case "test": - if (module === 42 && counter === 4) { - self.postMessage("done"); - break; - } - if (module !== counter) - throw new Error(`module (${module}) should be ${counter}`); - counter++; - self.postMessage("next"); - break; - default: - throw new Error("Unexpected message"); - } - } catch (e) { - self.postMessage("error: " + e.stack); - } -}; - -import.meta.webpackHot.accept("./module"); diff --git a/scripts/test/diff-exclude.cjs b/scripts/test/diff-exclude.cjs index 7d3cf71f582..61ee201f34e 100644 --- a/scripts/test/diff-exclude.cjs +++ b/scripts/test/diff-exclude.cjs @@ -29,7 +29,10 @@ const PARTIALLY_PASSED = [ "configCases/trusted-types/custom-policy-name", "configCases/trusted-types/default-policy-name", "configCases/trusted-types/no-policy-name", - "configCases/trusted-types/no-trusted-types" + "configCases/trusted-types/no-trusted-types", + + "hotCases/recover/recover-after-self-error", + "hotCases/worker/move-between-runtime" ]; // Webpack test fully passed, with additional test with the same name as webpack in rspack. @@ -69,7 +72,9 @@ module.exports = [ // Intended to have different README.md "README.md", // Intended to have different package.json - "package.json" + "package.json", + // output file + "js" ] .concat(PARTIALLY_PASSED) .concat(ADDITIONAL_TESTS) diff --git a/webpack-test/hotCases/child-compiler/issue-9706/test.filter.js b/webpack-test/hotCases/child-compiler/issue-9706/test.filter.js index 5c32e24f1f8..ebef3d82732 100644 --- a/webpack-test/hotCases/child-compiler/issue-9706/test.filter.js +++ b/webpack-test/hotCases/child-compiler/issue-9706/test.filter.js @@ -1,3 +1,2 @@ module.exports = () => {return false} - \ No newline at end of file diff --git a/webpack-test/hotCases/chunks/update-chunk-loading-runtime/test.filter.js b/webpack-test/hotCases/chunks/update-chunk-loading-runtime/test.filter.js index 5c32e24f1f8..cc023add4b2 100644 --- a/webpack-test/hotCases/chunks/update-chunk-loading-runtime/test.filter.js +++ b/webpack-test/hotCases/chunks/update-chunk-loading-runtime/test.filter.js @@ -1,3 +1,2 @@ -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => {return "https://github.com/web-infra-dev/rspack/issues/5596"} diff --git a/webpack-test/hotCases/recover/recover-after-error/test.filter.js b/webpack-test/hotCases/recover/recover-after-error/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/webpack-test/hotCases/recover/recover-after-error/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/webpack-test/hotCases/recover/recover-after-loader-error/test.filter.js b/webpack-test/hotCases/recover/recover-after-loader-error/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/webpack-test/hotCases/recover/recover-after-loader-error/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/webpack-test/hotCases/recover/recover-after-parsing-error/test.filter.js b/webpack-test/hotCases/recover/recover-after-parsing-error/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/webpack-test/hotCases/recover/recover-after-parsing-error/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/webpack-test/hotCases/recover/recover-after-removal-self-accepted/test.filter.js b/webpack-test/hotCases/recover/recover-after-removal-self-accepted/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/webpack-test/hotCases/recover/recover-after-removal-self-accepted/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/webpack-test/hotCases/recover/recover-after-self-error/test.filter.js b/webpack-test/hotCases/recover/recover-after-self-error/test.filter.js index 5c32e24f1f8..cc023add4b2 100644 --- a/webpack-test/hotCases/recover/recover-after-self-error/test.filter.js +++ b/webpack-test/hotCases/recover/recover-after-self-error/test.filter.js @@ -1,3 +1,2 @@ -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => {return "https://github.com/web-infra-dev/rspack/issues/5596"} diff --git a/webpack-test/hotCases/worker/move-between-runtime/test.filter.js b/webpack-test/hotCases/worker/move-between-runtime/test.filter.js index e0c3f260a9c..3c1645c3e9f 100644 --- a/webpack-test/hotCases/worker/move-between-runtime/test.filter.js +++ b/webpack-test/hotCases/worker/move-between-runtime/test.filter.js @@ -7,6 +7,5 @@ module.exports = function (config) { }; */ -module.exports = () => {return false} +module.exports = () => {return "https://github.com/web-infra-dev/rspack/issues/5597"} - \ No newline at end of file diff --git a/webpack-test/hotCases/worker/remove-add-worker/test.filter.js b/webpack-test/hotCases/worker/remove-add-worker/test.filter.js index 71b3f1b8c1c..ec68de24950 100644 --- a/webpack-test/hotCases/worker/remove-add-worker/test.filter.js +++ b/webpack-test/hotCases/worker/remove-add-worker/test.filter.js @@ -1,12 +1,6 @@ -/* var supportsWorker = require("../../../helpers/supportsWorker"); module.exports = function (config) { return supportsWorker() && config.target !== "async-node"; }; - -*/ -module.exports = () => {return false} - - \ No newline at end of file diff --git a/webpack-test/hotCases/worker/update-in-worker/test.filter.js b/webpack-test/hotCases/worker/update-in-worker/test.filter.js index e0c3f260a9c..c06656277e9 100644 --- a/webpack-test/hotCases/worker/update-in-worker/test.filter.js +++ b/webpack-test/hotCases/worker/update-in-worker/test.filter.js @@ -1,12 +1,6 @@ -/* var supportsWorker = require("../../../helpers/supportsWorker"); module.exports = function (config) { return supportsWorker(); }; - -*/ -module.exports = () => {return false} - - \ No newline at end of file