MCPcopy
hub / github.com/webpack/webpack / step1

Function step1

test/WatchDetection.test.js:105–126  ·  test/WatchDetection.test.js::step1

* @returns {void}

()

Source from the content-addressed store, hash-verified

103 * @returns {void}
104 */
105 function step1() {
106 onChange = () => {
107 if (
108 memfs.readFileSync(class="st">"/directory/bundle.js") &&
109 memfs
110 .readFileSync(class="st">"/directory/bundle.js")
111 .toString()
112 .includes(class="st">"original")
113 ) {
114 step2();
115 }
116 };
117
118 watcher = /** @type {import(class="st">"../").Watching} */ (
119 compiler.watch(
120 {
121 aggregateTimeout: 50
122 },
123 () => {}
124 )
125 );
126 }
127
128 /**
129 * @returns {void}

Callers 1

createTestCaseFunction · 0.85

Calls 3

step2Function · 0.85
toStringMethod · 0.45
watchMethod · 0.45

Tested by

no test coverage detected