MCPcopy Create free account
hub / github.com/browserify/watchify / breakTheBuild

Function breakTheBuild

test/errors_transform.js:46–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44 breakTheBuild();
45 });
46 function breakTheBuild() {
47 setTimeout(function() {
48 fs.writeFileSync(file, 'console.log()');
49 }, 1000);
50 w.once('update', function () {
51 w.bundle(function (err, src) {
52 t.ok(err instanceof Error, 'should be error');
53 t.ok(/^No number in this chunk/.test(err.message));
54 fixTheBuild();
55 });
56 });
57 }
58 function fixTheBuild() {
59 setTimeout(function() {
60 fs.writeFileSync(file, 'console.log(333)');

Callers 1

Calls 1

fixTheBuildFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…