Skip to content

Commit 41ff1c8

Browse files
committed
Add unit another test
1 parent 37baca3 commit 41ff1c8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/config/parse-runtime.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,18 @@ describe('parse-runtime', () => {
9696
expect(config.context).to.equal('/tmp/custom-context');
9797
});
9898

99+
it('babel config in package.json detected when present', () => {
100+
const projectDir = createTestDirectory();
101+
fs.writeFileSync(
102+
path.join(projectDir, 'package.json'),
103+
'{"babel": {}}'
104+
);
105+
106+
const config = parseArgv(createArgv(['dev']), projectDir);
107+
108+
expect(config.babelRcFileExists).to.be.true;
109+
});
110+
99111
it('.babelrc detected when present', () => {
100112
const projectDir = createTestDirectory();
101113
fs.writeFileSync(

0 commit comments

Comments
 (0)