Browse Source

add tests for ignoring babelrc

babel-plugin-for-integration-tests
James Talmage 9 years ago
parent
commit
5f5be31a53
  1. 3
      test/fixture/babelrc/.babelrc
  2. 4
      test/fixture/babelrc/package.json
  3. 3
      test/fixture/babelrc/test.js
  4. 9
      test/fork.js

3
test/fixture/babelrc/.babelrc

@ -0,0 +1,3 @@
{
"plugins": ["this-plugin-does-not-exist"]
}

4
test/fixture/babelrc/package.json

@ -0,0 +1,4 @@
{
"name": "application-name",
"version": "0.0.1"
}

3
test/fixture/babelrc/test.js

@ -0,0 +1,3 @@
import test from '../../../'
test(t => t.pass());

9
test/fork.js

@ -81,3 +81,12 @@ test('destructuring of `t` is allowed', function (t) {
t.end(); 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();
});
});

Loading…
Cancel
Save