Merge pull request #11180 from webpack/test/watch-production-4

add test case for watching in production
This commit is contained in:
Tobias Koppers 2020-07-30 10:42:19 +02:00 committed by GitHub
commit 4a1f068828
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1 @@
module.exports = "0";

View File

@ -0,0 +1 @@
export default "0";

View File

@ -0,0 +1,6 @@
import module from "./changing-module";
it("should watch for changes", function () {
expect(require("./changing-file")).toBe(WATCH_STEP);
expect(module).toBe(WATCH_STEP);
});

View File

@ -0,0 +1 @@
module.exports = "1";

View File

@ -0,0 +1 @@
export default "1";

View File

@ -0,0 +1 @@
module.exports = "2";

View File

@ -0,0 +1 @@
export default "2";

View File

@ -0,0 +1,4 @@
/** @type {import("../../../../").Configuration} */
module.exports = {
mode: "production"
};