Skip to content

Commit

Permalink
Use babel-register for tests only with node < 8 (#841)
Browse files Browse the repository at this point in the history
  • Loading branch information
ronami authored and devongovett committed Feb 18, 2018
1 parent 6d9e68c commit 83d4e3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions test/babel-register.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if (parseInt(process.versions.node, 10) < 8) {
require('babel-register');
}
2 changes: 1 addition & 1 deletion test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
--timeout 25000
--require babel-register
--require ./test/babel-register

0 comments on commit 83d4e3b

Please sign in to comment.