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

Function fixTheBuild

test/errors_transform.js:58–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56 });
57 }
58 function fixTheBuild() {
59 setTimeout(function() {
60 fs.writeFileSync(file, 'console.log(333)');
61 }, 1000);
62 var safety = setTimeout(function() {
63 t.fail("gave up waiting");
64 w.close();
65 t.end();
66 }, 5000);
67 w.once('update', function () {
68 clearTimeout(safety);
69 w.bundle(function (err, src) {
70 t.ifError(err);
71 t.equal(run(src), '333\n');
72 w.close();
73 });
74 });
75 }
76});
77
78function run (src) {

Callers 1

breakTheBuildFunction · 0.70

Calls 1

runFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…