Skip to content

Commit

Permalink
Merge pull request #398 from jamestalmage/dont-read-babelrc
Browse files Browse the repository at this point in the history
Stop reading `.babelrc` files.
  • Loading branch information
jamestalmage committed Jan 3, 2016
2 parents ce47844 + 5f5be31 commit 87a3430
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/fixture/babelrc/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"plugins": ["this-plugin-does-not-exist"]
}
4 changes: 4 additions & 0 deletions test/fixture/babelrc/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "application-name",
"version": "0.0.1"
}
3 changes: 3 additions & 0 deletions test/fixture/babelrc/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import test from '../../../'

test(t => t.pass());
9 changes: 9 additions & 0 deletions test/fork.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,12 @@ test('destructuring of `t` is allowed', function (t) {
t.end();
});
});

test('babelrc is ignored', function (t) {
fork(fixture('babelrc/test.js'))
.run()
.then(function (info) {
t.is(info.stats.passCount, 1);
t.end();
});
});

0 comments on commit 87a3430

Please sign in to comment.