diff --git a/test/fixture/babelrc/.babelrc b/test/fixture/babelrc/.babelrc new file mode 100644 index 000000000..c7aec8ef4 --- /dev/null +++ b/test/fixture/babelrc/.babelrc @@ -0,0 +1,3 @@ +{ + "plugins": ["this-plugin-does-not-exist"] +} diff --git a/test/fixture/babelrc/package.json b/test/fixture/babelrc/package.json new file mode 100644 index 000000000..daa8ae391 --- /dev/null +++ b/test/fixture/babelrc/package.json @@ -0,0 +1,4 @@ +{ + "name": "application-name", + "version": "0.0.1" +} diff --git a/test/fixture/babelrc/test.js b/test/fixture/babelrc/test.js new file mode 100644 index 000000000..a5315da17 --- /dev/null +++ b/test/fixture/babelrc/test.js @@ -0,0 +1,3 @@ +import test from '../../../' + +test(t => t.pass()); diff --git a/test/fork.js b/test/fork.js index e67def95d..e74854340 100644 --- a/test/fork.js +++ b/test/fork.js @@ -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(); + }); +});