Merge pull request #11180 from webpack/test/watch-production-4
add test case for watching in production
This commit is contained in:
commit
4a1f068828
|
@ -0,0 +1 @@
|
||||||
|
module.exports = "0";
|
|
@ -0,0 +1 @@
|
||||||
|
export default "0";
|
|
@ -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);
|
||||||
|
});
|
|
@ -0,0 +1 @@
|
||||||
|
module.exports = "1";
|
|
@ -0,0 +1 @@
|
||||||
|
export default "1";
|
|
@ -0,0 +1 @@
|
||||||
|
module.exports = "2";
|
|
@ -0,0 +1 @@
|
||||||
|
export default "2";
|
|
@ -0,0 +1,4 @@
|
||||||
|
/** @type {import("../../../../").Configuration} */
|
||||||
|
module.exports = {
|
||||||
|
mode: "production"
|
||||||
|
};
|
Loading…
Reference in New Issue