Skip to content

Commit

Permalink
add test case for error recovery while watching
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Jul 15, 2017
1 parent b4c74b2 commit 329a805
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/watchCases/recover-from-error/missing-module/0/errors.js
@@ -0,0 +1,3 @@
module.exports = [
[/Module not found/, /Can't resolve 'some-module' /]
];
12 changes: 12 additions & 0 deletions test/watchCases/recover-from-error/missing-module/0/index.js
@@ -0,0 +1,12 @@
it("should recover from missing module", function() {
switch(WATCH_STEP) {
case "0":
(function() {
require("some-module");
}).should.throw();
break;
case "1":
require("some-module").should.be.eql("ok");
break;
}
});
Empty file.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 329a805

Please sign in to comment.