Skip to content
This repository was archived by the owner on Feb 12, 2019. It is now read-only.

Commit a7ad940

Browse files
Fix the stack overflow error (fixes #9) (#10)
1 parent 3e667a7 commit a7ad940

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

lib/file-watcher/modules-graph.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ module.exports = class ModulesGraph {
3333
return;
3434

3535
const cached = cache[node];
36+
37+
if (cached)
38+
this.graph.setNode(node);
39+
3640
const parent = cached && cached.parent;
3741

3842
if (parent && parent.id.indexOf('node_modules') < 0) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "testcafe-live",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"description": "A watcher utility for TestCafe. Watches for changes in test files and automatically runs tests when these changes occur.",
55
"main": "lib/index.js",
66
"bin": {

0 commit comments

Comments
 (0)