Skip to content

Commit 5f5be31

Browse files
committed
add tests for ignoring babelrc
1 parent ce47844 commit 5f5be31

4 files changed

Lines changed: 19 additions & 0 deletions

File tree

test/fixture/babelrc/.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"plugins": ["this-plugin-does-not-exist"]
3+
}

test/fixture/babelrc/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "application-name",
3+
"version": "0.0.1"
4+
}

test/fixture/babelrc/test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import test from '../../../'
2+
3+
test(t => t.pass());

test/fork.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,12 @@ test('destructuring of `t` is allowed', function (t) {
8181
t.end();
8282
});
8383
});
84+
85+
test('babelrc is ignored', function (t) {
86+
fork(fixture('babelrc/test.js'))
87+
.run()
88+
.then(function (info) {
89+
t.is(info.stats.passCount, 1);
90+
t.end();
91+
});
92+
});

0 commit comments

Comments
 (0)