Skip to content

Commit e126a3e

Browse files
committed
Use @babel/parser for tests to support typescript syntax
1 parent c32a2a2 commit e126a3e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

__tests__/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import getProp from '../src/getProp';
22

3-
const parser = require('babylon');
3+
const parser = require('@babel/parser');
44

55
function parse(code) {
66
return parser.parse(code, {

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"devDependencies": {
1717
"@babel/cli": "^7.0.0",
1818
"@babel/core": "^7.0.0",
19+
"@babel/parser": "^7.3.2",
1920
"@babel/polyfill": "^7.0.0",
2021
"@babel/preset-env": "^7.0.0",
2122
"babel-core": "^7.0.0-bridge.0",

0 commit comments

Comments
 (0)