From 2b3bb6b759bb2e55afd6995790cc2184a384d555 Mon Sep 17 00:00:00 2001 From: ahabhgk Date: Fri, 30 Aug 2024 19:08:25 +0800 Subject: [PATCH 1/3] test: webpack test hot cases for new incremental --- packages/rspack-test-tools/etc/api.md | 6 +- .../src/case/new-incremental.ts | 25 +++-- .../src/processor/hot-new-incremental.ts | 12 +++ .../tests/NewIncremental.test.js | 101 ++++++++++++++---- .../issue-9706/report-child-assets-loader.js | 2 +- .../child-compiler/issue-9706/test.filter.js | 2 - .../test.filter.js | 3 - .../accept-system-import/test.filter.js | 3 - .../dynamic-system-import/test.filter.js | 3 - 9 files changed, 112 insertions(+), 45 deletions(-) delete mode 100644 tests/webpack-test/hotCases/child-compiler/issue-9706/test.filter.js delete mode 100644 tests/webpack-test/hotCases/chunks/accept-system-import-webpackhot/test.filter.js delete mode 100644 tests/webpack-test/hotCases/chunks/accept-system-import/test.filter.js delete mode 100644 tests/webpack-test/hotCases/chunks/dynamic-system-import/test.filter.js diff --git a/packages/rspack-test-tools/etc/api.md b/packages/rspack-test-tools/etc/api.md index 58d6dc37098..bb905164e17 100644 --- a/packages/rspack-test-tools/etc/api.md +++ b/packages/rspack-test-tools/etc/api.md @@ -179,7 +179,7 @@ export function createHookCase(name: string, src: string, dist: string, source: export function createHotCase(name: string, src: string, dist: string, target: TCompilerOptions["target"]): void; // @public (undocumented) -export function createHotNewIncrementalCase(name: string, src: string, dist: string, target: TCompilerOptions["target"]): void; +export function createHotNewIncrementalCase(name: string, src: string, dist: string, target: TCompilerOptions["target"], documentType: EDocumentType): void; // @public (undocumented) export function createHotStepCase(name: string, src: string, dist: string, target: TCompilerOptions["target"]): void; @@ -466,6 +466,8 @@ export class HotNewIncrementalProcessor extends HotProc static defaultOptions(this: HotNewIncrementalProcessor, context: ITestContext): TCompilerOptions; // (undocumented) protected _hotOptions: IHotNewIncrementalProcessorOptions; + // (undocumented) + run(env: ITestEnv, context: ITestContext): Promise; } // @public (undocumented) @@ -750,6 +752,8 @@ export interface IHookProcessorOptions extends ISnapsho // @public (undocumented) export interface IHotNewIncrementalProcessorOptions extends Omit, "runable"> { + // (undocumented) + documentType?: EDocumentType; // (undocumented) target: TCompilerOptions["target"]; } diff --git a/packages/rspack-test-tools/src/case/new-incremental.ts b/packages/rspack-test-tools/src/case/new-incremental.ts index a3678a455a6..461bea45cef 100644 --- a/packages/rspack-test-tools/src/case/new-incremental.ts +++ b/packages/rspack-test-tools/src/case/new-incremental.ts @@ -5,19 +5,24 @@ import { HotNewIncrementalProcessor } from "../processor/hot-new-incremental"; import { WatchProcessor, WatchStepProcessor } from "../processor/watch"; import { HotRunnerFactory, WatchRunnerFactory } from "../runner"; import { BasicCaseCreator } from "../test/creator"; -import { ECompilerType, type TCompilerOptions } from "../type"; +import { + ECompilerType, + type EDocumentType, + type TCompilerOptions +} from "../type"; type TTarget = TCompilerOptions["target"]; const hotCreators: Map< - TTarget, + string, BasicCaseCreator > = new Map(); -function getHotCreator(target: TTarget) { - if (!hotCreators.has(target)) { +function getHotCreator(target: TTarget, documentType: EDocumentType) { + const key = JSON.stringify({ target, documentType }); + if (!hotCreators.has(key)) { hotCreators.set( - target, + key, new BasicCaseCreator({ clean: true, describe: true, @@ -27,23 +32,25 @@ function getHotCreator(target: TTarget) { name, target: target as TTarget, compilerType: ECompilerType.Rspack, - configFiles: ["rspack.config.js", "webpack.config.js"] + configFiles: ["rspack.config.js", "webpack.config.js"], + documentType }) ], runner: HotRunnerFactory }) ); } - return hotCreators.get(target)!; + return hotCreators.get(key)!; } export function createHotNewIncrementalCase( name: string, src: string, dist: string, - target: TCompilerOptions["target"] + target: TCompilerOptions["target"], + documentType: EDocumentType ) { - const creator = getHotCreator(target); + const creator = getHotCreator(target, documentType); creator.create(name, src, dist); } diff --git a/packages/rspack-test-tools/src/processor/hot-new-incremental.ts b/packages/rspack-test-tools/src/processor/hot-new-incremental.ts index a2c1207cbe6..5c7df252708 100644 --- a/packages/rspack-test-tools/src/processor/hot-new-incremental.ts +++ b/packages/rspack-test-tools/src/processor/hot-new-incremental.ts @@ -1,6 +1,8 @@ import { ECompilerType, + type EDocumentType, type ITestContext, + type ITestEnv, type TCompilerOptions } from "../type"; import type { IBasicProcessorOptions } from "./basic"; @@ -9,6 +11,7 @@ import { HotProcessor } from "./hot"; export interface IHotNewIncrementalProcessorOptions extends Omit, "runable"> { target: TCompilerOptions["target"]; + documentType?: EDocumentType; } export class HotNewIncrementalProcessor< @@ -18,6 +21,15 @@ export class HotNewIncrementalProcessor< super(_hotOptions); } + async run(env: ITestEnv, context: ITestContext) { + context.setValue( + this._options.name, + "documentType", + this._hotOptions.documentType + ); + await super.run(env, context); + } + static defaultOptions( this: HotNewIncrementalProcessor, context: ITestContext diff --git a/packages/rspack-test-tools/tests/NewIncremental.test.js b/packages/rspack-test-tools/tests/NewIncremental.test.js index c9738827f5a..3f86a9fd07e 100644 --- a/packages/rspack-test-tools/tests/NewIncremental.test.js +++ b/packages/rspack-test-tools/tests/NewIncremental.test.js @@ -4,38 +4,41 @@ process.env.RSPACK_CONFIG_VALIDATE = 'loose-silent'; const path = require("path"); const { describeByWalk, createHotNewIncrementalCase, createWatchNewIncrementalCase } = require("../dist"); -function postfixName(name) { - return `${name} (newIncremental)` +function v(name) { + return path.join(__dirname, `new-incremental ${name}`) } -describeByWalk(__filename, (name, src, dist) => { - createHotNewIncrementalCase(postfixName(name), src, dist, "async-node"); +// Run tests rspack-test-tools/tests/hotCases in target async-node +describeByWalk(v("hot async-node"), (name, src, dist) => { + createHotNewIncrementalCase(name, src, dist, "async-node", "jsdom"); }, { source: path.resolve(__dirname, "./hotCases"), - dist: path.resolve(__dirname, `./js/new-incremental/hot-node`), + dist: path.resolve(__dirname, `./js/new-incremental/hot-async-node`), exclude: [/^css$/] }); -describeByWalk(__filename, (name, src, dist) => { - createHotNewIncrementalCase(postfixName(name), src, dist, "web"); +// Run tests rspack-test-tools/tests/hotCases in target web +describeByWalk(v("hot web"), (name, src, dist) => { + createHotNewIncrementalCase(name, src, dist, "web", "jsdom"); }, { source: path.resolve(__dirname, "./hotCases"), dist: path.resolve(__dirname, `./js/new-incremental/hot-web`) }); -describeByWalk(__filename, (name, src, dist) => { - createHotNewIncrementalCase(postfixName(name), src, dist, "webworker"); +// Run tests rspack-test-tools/tests/hotCases in target webworker +describeByWalk(v("hot webworker"), (name, src, dist) => { + createHotNewIncrementalCase(name, src, dist, "webworker", "jsdom"); }, { source: path.resolve(__dirname, "./hotCases"), dist: path.resolve(__dirname, `./js/new-incremental/hot-worker`), exclude: [/^css$/] }); -// Run tests in rspack-test-tools/tests/watchCases -describeByWalk(__filename, (name, src, dist) => { +// Run tests rspack-test-tools/tests/watchCases +describeByWalk(v("watch"), (name, src, dist) => { const tempDir = path.resolve(__dirname, `./js/new-incremental/temp`); createWatchNewIncrementalCase( - postfixName(name), + name, src, dist, path.join(tempDir, name), @@ -45,11 +48,63 @@ describeByWalk(__filename, (name, src, dist) => { dist: path.resolve(__dirname, `./js/new-incremental/watch`), }); -// Run tests in webpack-test/watchCases -describeByWalk(__filename, (name, src, dist) => { - const tempDir = path.resolve(__dirname, `./js/new-incremental/temp`); +// Run tests webpack-test/hotCases in target async-node +describeByWalk(v("hot async-node (webpack-test)"), (name, src, dist) => { + createHotNewIncrementalCase(name, src, dist, "async-node", "fake"); +}, { + source: path.resolve(__dirname, "../../../tests/webpack-test/hotCases"), + dist: path.resolve(__dirname, `./js/new-incremental/webpack-test/hot-async-node`), + exclude: [ + /move-between-runtime/, + /context/, + /module-test/, + ] +}); + +// Run tests webpack-test/hotCases in target node +describeByWalk(v("hot node (webpack-test)"), (name, src, dist) => { + createHotNewIncrementalCase(name, src, dist, "node", "fake"); +}, { + source: path.resolve(__dirname, "../../../tests/webpack-test/hotCases"), + dist: path.resolve(__dirname, `./js/new-incremental/webpack-test/hot-node`), + exclude: [ + /move-between-runtime/, + /context/, + /module-test/, + ] +}); + +// Run tests webpack-test/hotCases in target web +describeByWalk(v("hot web (webpack-test)"), (name, src, dist) => { + createHotNewIncrementalCase(name, src, dist, "web", "fake"); +}, { + source: path.resolve(__dirname, "../../../tests/webpack-test/hotCases"), + dist: path.resolve(__dirname, `./js/new-incremental/webpack-test/hot-web`), + exclude: [ + /move-between-runtime/, + /context/, + /module-test/, + ] +}); + +// Run tests webpack-test/hotCases in target webworker +describeByWalk(v("hot webworker (webpack-test)"), (name, src, dist) => { + createHotNewIncrementalCase(name, src, dist, "webworker", "fake"); +}, { + source: path.resolve(__dirname, "../../../tests/webpack-test/hotCases"), + dist: path.resolve(__dirname, `./js/new-incremental/webpack-test/hot-webworker`), + exclude: [ + /move-between-runtime/, + /context/, + /module-test/, + ] +}); + +// Run tests webpack-test/watchCases +describeByWalk(v("watch (webpack-test)"), (name, src, dist) => { + const tempDir = path.resolve(__dirname, `./js/new-incremental/webpack-test/temp`); createWatchNewIncrementalCase( - postfixName(name), + name, src, dist, path.join(tempDir, name), @@ -57,11 +112,11 @@ describeByWalk(__filename, (name, src, dist) => { }, { source: path.resolve(__dirname, "../../../tests/webpack-test/watchCases"), dist: path.resolve(__dirname, `./js/new-incremental/webpack-test/watch`), - exclude: [ - /module-concatenation-plugin/, - /missing-module/, - /caching-inner-source/, - /production/, - /warnings-contribute-to-hash/, - ] + exclude: [ + /module-concatenation-plugin/, + /missing-module/, + /caching-inner-source/, + /production/, + /warnings-contribute-to-hash/, + ] }); diff --git a/tests/webpack-test/hotCases/child-compiler/issue-9706/report-child-assets-loader.js b/tests/webpack-test/hotCases/child-compiler/issue-9706/report-child-assets-loader.js index 47bfc3a664c..86c30ed2d84 100644 --- a/tests/webpack-test/hotCases/child-compiler/issue-9706/report-child-assets-loader.js +++ b/tests/webpack-test/hotCases/child-compiler/issue-9706/report-child-assets-loader.js @@ -1,5 +1,5 @@ const { - SingleEntryPlugin, + EntryPlugin: SingleEntryPlugin, node: { NodeTemplatePlugin } } = require("@rspack/core"); diff --git a/tests/webpack-test/hotCases/child-compiler/issue-9706/test.filter.js b/tests/webpack-test/hotCases/child-compiler/issue-9706/test.filter.js deleted file mode 100644 index ebef3d82732..00000000000 --- a/tests/webpack-test/hotCases/child-compiler/issue-9706/test.filter.js +++ /dev/null @@ -1,2 +0,0 @@ - -module.exports = () => {return false} diff --git a/tests/webpack-test/hotCases/chunks/accept-system-import-webpackhot/test.filter.js b/tests/webpack-test/hotCases/chunks/accept-system-import-webpackhot/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/chunks/accept-system-import-webpackhot/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/chunks/accept-system-import/test.filter.js b/tests/webpack-test/hotCases/chunks/accept-system-import/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/chunks/accept-system-import/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/chunks/dynamic-system-import/test.filter.js b/tests/webpack-test/hotCases/chunks/dynamic-system-import/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/chunks/dynamic-system-import/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file From 8d0bd1031eb18a9080367d808deef2a4f01a1bb8 Mon Sep 17 00:00:00 2001 From: ahabhgk Date: Mon, 2 Sep 2024 17:23:14 +0800 Subject: [PATCH 2/3] more test --- .../tests/NewIncremental.test.js | 16 ++++++++++++++++ .../hotCases/chunks/system-import/test.filter.js | 3 --- .../this-in-accept-webpackhot/test.filter.js | 3 --- .../this-in-accept/test.filter.js | 3 --- .../concat/reload-compat-flag/test.filter.js | 3 --- .../concat/reload-external/test.filter.js | 3 --- .../determinism/issue-10174/test.filter.js | 3 --- .../test.filter.js | 3 --- .../remove-chunk-with-shared/test.filter.js | 3 --- .../errors/decline-webpackhot/test.filter.js | 3 --- .../hotCases/errors/decline/test.filter.js | 3 --- .../hotCases/errors/events/test.filter.js | 3 --- .../hotCases/errors/self-decline/test.filter.js | 3 --- .../errors/unaccepted-ignored/test.filter.js | 3 --- .../hotCases/errors/unaccepted/test.filter.js | 3 --- .../node_modules/dep1/exports.js | 1 + .../node_modules/dep1/file.js | 3 +++ .../node_modules/dep1/main.js | 5 +++++ .../node_modules/dep1/package.json | 6 ++++++ .../import-meta-webpack-hot/test.filter.js | 3 --- .../module-hot/node_modules/dep1/exports.js | 1 + .../module-hot/node_modules/dep1/file.js | 3 +++ .../module-hot/node_modules/dep1/main.js | 5 +++++ .../module-hot/node_modules/dep1/package.json | 6 ++++++ .../module-hot/test.filter.js | 3 --- .../harmony/auto-import-default/test.filter.js | 3 --- .../harmony/auto-import-multiple/test.filter.js | 3 --- .../hotCases/harmony/auto-import/test.filter.js | 3 --- .../harmony/auto-reexport/test.filter.js | 3 --- .../exports-info-influence/test.filter.js | 3 --- .../hashing/full-hash-main/test.filter.js | 3 --- .../invalidate/conditional-accept/test.filter.js | 3 --- .../invalidate/during-idle/test.filter.js | 3 --- .../numeric-ids/production/test.filter.js | 3 --- .../hot-api-optional-chaining/test.filter.js | 3 --- .../hotCases/runtime/accept/test.filter.js | 3 --- .../hotCases/runtime/bubble-async/test.filter.js | 3 --- .../runtime/bubble-update/test.filter.js | 3 --- .../hotCases/runtime/circular/test.filter.js | 3 --- .../runtime/dispose-removed-chunk/test.filter.js | 3 --- .../dispose-removed-module/test.filter.js | 3 --- .../runtime/import-after-download/test.filter.js | 3 --- .../replace-runtime-module/test.filter.js | 3 --- .../test.filter.js | 3 --- .../self-accept-and-dispose/test.filter.js | 3 --- .../runtime/self-accept-factory/test.filter.js | 3 --- .../update-multiple-modules/test.filter.js | 3 --- .../runtime/update-multiple-times/test.filter.js | 3 --- .../hotCases/sharing/share-plugin/test.filter.js | 3 --- .../hotCases/status/accept/test.filter.js | 3 --- .../hotCases/status/check/test.filter.js | 3 --- .../used-exports/test.filter.js | 3 --- 52 files changed, 46 insertions(+), 129 deletions(-) delete mode 100644 tests/webpack-test/hotCases/chunks/system-import/test.filter.js delete mode 100644 tests/webpack-test/hotCases/code-generation/this-in-accept-webpackhot/test.filter.js delete mode 100644 tests/webpack-test/hotCases/code-generation/this-in-accept/test.filter.js delete mode 100644 tests/webpack-test/hotCases/concat/reload-compat-flag/test.filter.js delete mode 100644 tests/webpack-test/hotCases/concat/reload-external/test.filter.js delete mode 100644 tests/webpack-test/hotCases/determinism/issue-10174/test.filter.js delete mode 100644 tests/webpack-test/hotCases/disposing/remove-chunk-with-shared-in-other-runtime/test.filter.js delete mode 100644 tests/webpack-test/hotCases/disposing/remove-chunk-with-shared/test.filter.js delete mode 100644 tests/webpack-test/hotCases/errors/decline-webpackhot/test.filter.js delete mode 100644 tests/webpack-test/hotCases/errors/decline/test.filter.js delete mode 100644 tests/webpack-test/hotCases/errors/events/test.filter.js delete mode 100644 tests/webpack-test/hotCases/errors/self-decline/test.filter.js delete mode 100644 tests/webpack-test/hotCases/errors/unaccepted-ignored/test.filter.js delete mode 100644 tests/webpack-test/hotCases/errors/unaccepted/test.filter.js create mode 100644 tests/webpack-test/hotCases/esm-dependency-import/import-meta-webpack-hot/node_modules/dep1/exports.js create mode 100644 tests/webpack-test/hotCases/esm-dependency-import/import-meta-webpack-hot/node_modules/dep1/file.js create mode 100644 tests/webpack-test/hotCases/esm-dependency-import/import-meta-webpack-hot/node_modules/dep1/main.js create mode 100644 tests/webpack-test/hotCases/esm-dependency-import/import-meta-webpack-hot/node_modules/dep1/package.json delete mode 100644 tests/webpack-test/hotCases/esm-dependency-import/import-meta-webpack-hot/test.filter.js create mode 100644 tests/webpack-test/hotCases/esm-dependency-import/module-hot/node_modules/dep1/exports.js create mode 100644 tests/webpack-test/hotCases/esm-dependency-import/module-hot/node_modules/dep1/file.js create mode 100644 tests/webpack-test/hotCases/esm-dependency-import/module-hot/node_modules/dep1/main.js create mode 100644 tests/webpack-test/hotCases/esm-dependency-import/module-hot/node_modules/dep1/package.json delete mode 100644 tests/webpack-test/hotCases/esm-dependency-import/module-hot/test.filter.js delete mode 100644 tests/webpack-test/hotCases/harmony/auto-import-default/test.filter.js delete mode 100644 tests/webpack-test/hotCases/harmony/auto-import-multiple/test.filter.js delete mode 100644 tests/webpack-test/hotCases/harmony/auto-import/test.filter.js delete mode 100644 tests/webpack-test/hotCases/harmony/auto-reexport/test.filter.js delete mode 100644 tests/webpack-test/hotCases/hashing/exports-info-influence/test.filter.js delete mode 100644 tests/webpack-test/hotCases/hashing/full-hash-main/test.filter.js delete mode 100644 tests/webpack-test/hotCases/invalidate/conditional-accept/test.filter.js delete mode 100644 tests/webpack-test/hotCases/invalidate/during-idle/test.filter.js delete mode 100644 tests/webpack-test/hotCases/numeric-ids/production/test.filter.js delete mode 100644 tests/webpack-test/hotCases/parsing/hot-api-optional-chaining/test.filter.js delete mode 100644 tests/webpack-test/hotCases/runtime/accept/test.filter.js delete mode 100644 tests/webpack-test/hotCases/runtime/bubble-async/test.filter.js delete mode 100644 tests/webpack-test/hotCases/runtime/bubble-update/test.filter.js delete mode 100644 tests/webpack-test/hotCases/runtime/circular/test.filter.js delete mode 100644 tests/webpack-test/hotCases/runtime/dispose-removed-chunk/test.filter.js delete mode 100644 tests/webpack-test/hotCases/runtime/dispose-removed-module/test.filter.js delete mode 100644 tests/webpack-test/hotCases/runtime/import-after-download/test.filter.js delete mode 100644 tests/webpack-test/hotCases/runtime/replace-runtime-module/test.filter.js delete mode 100644 tests/webpack-test/hotCases/runtime/require-disposed-module-warning/test.filter.js delete mode 100644 tests/webpack-test/hotCases/runtime/self-accept-and-dispose/test.filter.js delete mode 100644 tests/webpack-test/hotCases/runtime/self-accept-factory/test.filter.js delete mode 100644 tests/webpack-test/hotCases/runtime/update-multiple-modules/test.filter.js delete mode 100644 tests/webpack-test/hotCases/runtime/update-multiple-times/test.filter.js delete mode 100644 tests/webpack-test/hotCases/sharing/share-plugin/test.filter.js delete mode 100644 tests/webpack-test/hotCases/status/accept/test.filter.js delete mode 100644 tests/webpack-test/hotCases/status/check/test.filter.js delete mode 100644 tests/webpack-test/hotCases/unexpected-invalidation/used-exports/test.filter.js diff --git a/packages/rspack-test-tools/tests/NewIncremental.test.js b/packages/rspack-test-tools/tests/NewIncremental.test.js index 3f86a9fd07e..379ed0166be 100644 --- a/packages/rspack-test-tools/tests/NewIncremental.test.js +++ b/packages/rspack-test-tools/tests/NewIncremental.test.js @@ -58,6 +58,10 @@ describeByWalk(v("hot async-node (webpack-test)"), (name, src, dist) => { /move-between-runtime/, /context/, /module-test/, + /update-multiple-times/, + /dispose-removed-chunk/, + /import-meta-webpack-hot/, + /reload-external/, ] }); @@ -71,6 +75,10 @@ describeByWalk(v("hot node (webpack-test)"), (name, src, dist) => { /move-between-runtime/, /context/, /module-test/, + /update-multiple-times/, + /dispose-removed-chunk/, + /import-meta-webpack-hot/, + /reload-external/, ] }); @@ -84,6 +92,10 @@ describeByWalk(v("hot web (webpack-test)"), (name, src, dist) => { /move-between-runtime/, /context/, /module-test/, + /update-multiple-times/, + /dispose-removed-chunk/, + /import-meta-webpack-hot/, + /reload-external/, ] }); @@ -97,6 +109,10 @@ describeByWalk(v("hot webworker (webpack-test)"), (name, src, dist) => { /move-between-runtime/, /context/, /module-test/, + /update-multiple-times/, + /dispose-removed-chunk/, + /import-meta-webpack-hot/, + /reload-external/, ] }); diff --git a/tests/webpack-test/hotCases/chunks/system-import/test.filter.js b/tests/webpack-test/hotCases/chunks/system-import/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/chunks/system-import/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/code-generation/this-in-accept-webpackhot/test.filter.js b/tests/webpack-test/hotCases/code-generation/this-in-accept-webpackhot/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/code-generation/this-in-accept-webpackhot/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/code-generation/this-in-accept/test.filter.js b/tests/webpack-test/hotCases/code-generation/this-in-accept/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/code-generation/this-in-accept/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/concat/reload-compat-flag/test.filter.js b/tests/webpack-test/hotCases/concat/reload-compat-flag/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/concat/reload-compat-flag/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/concat/reload-external/test.filter.js b/tests/webpack-test/hotCases/concat/reload-external/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/concat/reload-external/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/determinism/issue-10174/test.filter.js b/tests/webpack-test/hotCases/determinism/issue-10174/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/determinism/issue-10174/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/disposing/remove-chunk-with-shared-in-other-runtime/test.filter.js b/tests/webpack-test/hotCases/disposing/remove-chunk-with-shared-in-other-runtime/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/disposing/remove-chunk-with-shared-in-other-runtime/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/disposing/remove-chunk-with-shared/test.filter.js b/tests/webpack-test/hotCases/disposing/remove-chunk-with-shared/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/disposing/remove-chunk-with-shared/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/errors/decline-webpackhot/test.filter.js b/tests/webpack-test/hotCases/errors/decline-webpackhot/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/errors/decline-webpackhot/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/errors/decline/test.filter.js b/tests/webpack-test/hotCases/errors/decline/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/errors/decline/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/errors/events/test.filter.js b/tests/webpack-test/hotCases/errors/events/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/errors/events/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/errors/self-decline/test.filter.js b/tests/webpack-test/hotCases/errors/self-decline/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/errors/self-decline/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/errors/unaccepted-ignored/test.filter.js b/tests/webpack-test/hotCases/errors/unaccepted-ignored/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/errors/unaccepted-ignored/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/errors/unaccepted/test.filter.js b/tests/webpack-test/hotCases/errors/unaccepted/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/errors/unaccepted/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/esm-dependency-import/import-meta-webpack-hot/node_modules/dep1/exports.js b/tests/webpack-test/hotCases/esm-dependency-import/import-meta-webpack-hot/node_modules/dep1/exports.js new file mode 100644 index 00000000000..5309d4e57ca --- /dev/null +++ b/tests/webpack-test/hotCases/esm-dependency-import/import-meta-webpack-hot/node_modules/dep1/exports.js @@ -0,0 +1 @@ +export {value} from "./file"; diff --git a/tests/webpack-test/hotCases/esm-dependency-import/import-meta-webpack-hot/node_modules/dep1/file.js b/tests/webpack-test/hotCases/esm-dependency-import/import-meta-webpack-hot/node_modules/dep1/file.js new file mode 100644 index 00000000000..5b2c52ba4bd --- /dev/null +++ b/tests/webpack-test/hotCases/esm-dependency-import/import-meta-webpack-hot/node_modules/dep1/file.js @@ -0,0 +1,3 @@ +export var value = 1; +--- +export var value = 2; diff --git a/tests/webpack-test/hotCases/esm-dependency-import/import-meta-webpack-hot/node_modules/dep1/main.js b/tests/webpack-test/hotCases/esm-dependency-import/import-meta-webpack-hot/node_modules/dep1/main.js new file mode 100644 index 00000000000..d4321ac5bf5 --- /dev/null +++ b/tests/webpack-test/hotCases/esm-dependency-import/import-meta-webpack-hot/node_modules/dep1/main.js @@ -0,0 +1,5 @@ +(() => { + throw new Error("should not resolve"); +})(); + +export default 1; diff --git a/tests/webpack-test/hotCases/esm-dependency-import/import-meta-webpack-hot/node_modules/dep1/package.json b/tests/webpack-test/hotCases/esm-dependency-import/import-meta-webpack-hot/node_modules/dep1/package.json new file mode 100644 index 00000000000..0f01e7fa4f2 --- /dev/null +++ b/tests/webpack-test/hotCases/esm-dependency-import/import-meta-webpack-hot/node_modules/dep1/package.json @@ -0,0 +1,6 @@ +{ + "exports": { + "import": "./exports.js", + "default": "./main.js" + } +} diff --git a/tests/webpack-test/hotCases/esm-dependency-import/import-meta-webpack-hot/test.filter.js b/tests/webpack-test/hotCases/esm-dependency-import/import-meta-webpack-hot/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/esm-dependency-import/import-meta-webpack-hot/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/esm-dependency-import/module-hot/node_modules/dep1/exports.js b/tests/webpack-test/hotCases/esm-dependency-import/module-hot/node_modules/dep1/exports.js new file mode 100644 index 00000000000..5309d4e57ca --- /dev/null +++ b/tests/webpack-test/hotCases/esm-dependency-import/module-hot/node_modules/dep1/exports.js @@ -0,0 +1 @@ +export {value} from "./file"; diff --git a/tests/webpack-test/hotCases/esm-dependency-import/module-hot/node_modules/dep1/file.js b/tests/webpack-test/hotCases/esm-dependency-import/module-hot/node_modules/dep1/file.js new file mode 100644 index 00000000000..5b2c52ba4bd --- /dev/null +++ b/tests/webpack-test/hotCases/esm-dependency-import/module-hot/node_modules/dep1/file.js @@ -0,0 +1,3 @@ +export var value = 1; +--- +export var value = 2; diff --git a/tests/webpack-test/hotCases/esm-dependency-import/module-hot/node_modules/dep1/main.js b/tests/webpack-test/hotCases/esm-dependency-import/module-hot/node_modules/dep1/main.js new file mode 100644 index 00000000000..d4321ac5bf5 --- /dev/null +++ b/tests/webpack-test/hotCases/esm-dependency-import/module-hot/node_modules/dep1/main.js @@ -0,0 +1,5 @@ +(() => { + throw new Error("should not resolve"); +})(); + +export default 1; diff --git a/tests/webpack-test/hotCases/esm-dependency-import/module-hot/node_modules/dep1/package.json b/tests/webpack-test/hotCases/esm-dependency-import/module-hot/node_modules/dep1/package.json new file mode 100644 index 00000000000..0f01e7fa4f2 --- /dev/null +++ b/tests/webpack-test/hotCases/esm-dependency-import/module-hot/node_modules/dep1/package.json @@ -0,0 +1,6 @@ +{ + "exports": { + "import": "./exports.js", + "default": "./main.js" + } +} diff --git a/tests/webpack-test/hotCases/esm-dependency-import/module-hot/test.filter.js b/tests/webpack-test/hotCases/esm-dependency-import/module-hot/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/esm-dependency-import/module-hot/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/harmony/auto-import-default/test.filter.js b/tests/webpack-test/hotCases/harmony/auto-import-default/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/harmony/auto-import-default/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/harmony/auto-import-multiple/test.filter.js b/tests/webpack-test/hotCases/harmony/auto-import-multiple/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/harmony/auto-import-multiple/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/harmony/auto-import/test.filter.js b/tests/webpack-test/hotCases/harmony/auto-import/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/harmony/auto-import/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/harmony/auto-reexport/test.filter.js b/tests/webpack-test/hotCases/harmony/auto-reexport/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/harmony/auto-reexport/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/hashing/exports-info-influence/test.filter.js b/tests/webpack-test/hotCases/hashing/exports-info-influence/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/hashing/exports-info-influence/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/hashing/full-hash-main/test.filter.js b/tests/webpack-test/hotCases/hashing/full-hash-main/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/hashing/full-hash-main/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/invalidate/conditional-accept/test.filter.js b/tests/webpack-test/hotCases/invalidate/conditional-accept/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/invalidate/conditional-accept/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/invalidate/during-idle/test.filter.js b/tests/webpack-test/hotCases/invalidate/during-idle/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/invalidate/during-idle/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/numeric-ids/production/test.filter.js b/tests/webpack-test/hotCases/numeric-ids/production/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/numeric-ids/production/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/parsing/hot-api-optional-chaining/test.filter.js b/tests/webpack-test/hotCases/parsing/hot-api-optional-chaining/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/parsing/hot-api-optional-chaining/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/runtime/accept/test.filter.js b/tests/webpack-test/hotCases/runtime/accept/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/runtime/accept/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/runtime/bubble-async/test.filter.js b/tests/webpack-test/hotCases/runtime/bubble-async/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/runtime/bubble-async/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/runtime/bubble-update/test.filter.js b/tests/webpack-test/hotCases/runtime/bubble-update/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/runtime/bubble-update/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/runtime/circular/test.filter.js b/tests/webpack-test/hotCases/runtime/circular/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/runtime/circular/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/runtime/dispose-removed-chunk/test.filter.js b/tests/webpack-test/hotCases/runtime/dispose-removed-chunk/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/runtime/dispose-removed-chunk/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/runtime/dispose-removed-module/test.filter.js b/tests/webpack-test/hotCases/runtime/dispose-removed-module/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/runtime/dispose-removed-module/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/runtime/import-after-download/test.filter.js b/tests/webpack-test/hotCases/runtime/import-after-download/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/runtime/import-after-download/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/runtime/replace-runtime-module/test.filter.js b/tests/webpack-test/hotCases/runtime/replace-runtime-module/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/runtime/replace-runtime-module/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/runtime/require-disposed-module-warning/test.filter.js b/tests/webpack-test/hotCases/runtime/require-disposed-module-warning/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/runtime/require-disposed-module-warning/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/runtime/self-accept-and-dispose/test.filter.js b/tests/webpack-test/hotCases/runtime/self-accept-and-dispose/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/runtime/self-accept-and-dispose/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/runtime/self-accept-factory/test.filter.js b/tests/webpack-test/hotCases/runtime/self-accept-factory/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/runtime/self-accept-factory/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/runtime/update-multiple-modules/test.filter.js b/tests/webpack-test/hotCases/runtime/update-multiple-modules/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/runtime/update-multiple-modules/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/runtime/update-multiple-times/test.filter.js b/tests/webpack-test/hotCases/runtime/update-multiple-times/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/runtime/update-multiple-times/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/sharing/share-plugin/test.filter.js b/tests/webpack-test/hotCases/sharing/share-plugin/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/sharing/share-plugin/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/status/accept/test.filter.js b/tests/webpack-test/hotCases/status/accept/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/status/accept/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/status/check/test.filter.js b/tests/webpack-test/hotCases/status/check/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/status/check/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file diff --git a/tests/webpack-test/hotCases/unexpected-invalidation/used-exports/test.filter.js b/tests/webpack-test/hotCases/unexpected-invalidation/used-exports/test.filter.js deleted file mode 100644 index 5c32e24f1f8..00000000000 --- a/tests/webpack-test/hotCases/unexpected-invalidation/used-exports/test.filter.js +++ /dev/null @@ -1,3 +0,0 @@ - -module.exports = () => {return false} - \ No newline at end of file From 9bd2453be81aa10332f8ccacec683a81fd79322e Mon Sep 17 00:00:00 2001 From: ahabhgk Date: Mon, 2 Sep 2024 18:27:25 +0800 Subject: [PATCH 3/3] fix checker --- packages/rspack-test-tools/etc/api.md | 2 ++ .../src/processor/hot-new-incremental.ts | 14 ++++++++++- .../tests/NewIncremental.test.js | 24 ------------------- 3 files changed, 15 insertions(+), 25 deletions(-) diff --git a/packages/rspack-test-tools/etc/api.md b/packages/rspack-test-tools/etc/api.md index bb905164e17..1f51e670b37 100644 --- a/packages/rspack-test-tools/etc/api.md +++ b/packages/rspack-test-tools/etc/api.md @@ -463,6 +463,8 @@ export class HookTaskProcessor extends SnapshotProcesso export class HotNewIncrementalProcessor extends HotProcessor { constructor(_hotOptions: IHotNewIncrementalProcessorOptions); // (undocumented) + afterAll(context: ITestContext): Promise; + // (undocumented) static defaultOptions(this: HotNewIncrementalProcessor, context: ITestContext): TCompilerOptions; // (undocumented) protected _hotOptions: IHotNewIncrementalProcessorOptions; diff --git a/packages/rspack-test-tools/src/processor/hot-new-incremental.ts b/packages/rspack-test-tools/src/processor/hot-new-incremental.ts index 5c7df252708..dbf7f51f78f 100644 --- a/packages/rspack-test-tools/src/processor/hot-new-incremental.ts +++ b/packages/rspack-test-tools/src/processor/hot-new-incremental.ts @@ -1,6 +1,6 @@ import { ECompilerType, - type EDocumentType, + EDocumentType, type ITestContext, type ITestEnv, type TCompilerOptions @@ -30,6 +30,18 @@ export class HotNewIncrementalProcessor< await super.run(env, context); } + async afterAll(context: ITestContext) { + try { + await super.afterAll(context); + } catch (e: any) { + const isFake = + context.getValue(this._options.name, "documentType") === + EDocumentType.Fake; + if (isFake && /Should run all hot steps/.test(e.message)) return; + throw e; + } + } + static defaultOptions( this: HotNewIncrementalProcessor, context: ITestContext diff --git a/packages/rspack-test-tools/tests/NewIncremental.test.js b/packages/rspack-test-tools/tests/NewIncremental.test.js index 379ed0166be..b99ef38778a 100644 --- a/packages/rspack-test-tools/tests/NewIncremental.test.js +++ b/packages/rspack-test-tools/tests/NewIncremental.test.js @@ -56,12 +56,6 @@ describeByWalk(v("hot async-node (webpack-test)"), (name, src, dist) => { dist: path.resolve(__dirname, `./js/new-incremental/webpack-test/hot-async-node`), exclude: [ /move-between-runtime/, - /context/, - /module-test/, - /update-multiple-times/, - /dispose-removed-chunk/, - /import-meta-webpack-hot/, - /reload-external/, ] }); @@ -73,12 +67,6 @@ describeByWalk(v("hot node (webpack-test)"), (name, src, dist) => { dist: path.resolve(__dirname, `./js/new-incremental/webpack-test/hot-node`), exclude: [ /move-between-runtime/, - /context/, - /module-test/, - /update-multiple-times/, - /dispose-removed-chunk/, - /import-meta-webpack-hot/, - /reload-external/, ] }); @@ -90,12 +78,6 @@ describeByWalk(v("hot web (webpack-test)"), (name, src, dist) => { dist: path.resolve(__dirname, `./js/new-incremental/webpack-test/hot-web`), exclude: [ /move-between-runtime/, - /context/, - /module-test/, - /update-multiple-times/, - /dispose-removed-chunk/, - /import-meta-webpack-hot/, - /reload-external/, ] }); @@ -107,12 +89,6 @@ describeByWalk(v("hot webworker (webpack-test)"), (name, src, dist) => { dist: path.resolve(__dirname, `./js/new-incremental/webpack-test/hot-webworker`), exclude: [ /move-between-runtime/, - /context/, - /module-test/, - /update-multiple-times/, - /dispose-removed-chunk/, - /import-meta-webpack-hot/, - /reload-external/, ] });