Skip to content

Commit

Permalink
chore: bump babel (#10254)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB authored Jul 14, 2020
1 parent 2db75d7 commit 5fe8b08
Show file tree
Hide file tree
Showing 3 changed files with 710 additions and 661 deletions.
1 change: 1 addition & 0 deletions packages/babel-plugin-jest-hoist/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ const isJestObject = (expression: NodePath<Expression>): boolean => {
expression
.get<'object'>('object')
.referencesImport(JEST_GLOBALS_MODULE_NAME, '*') &&
expression.node.property.type === 'Identifier' &&
expression.node.property.name === JEST_GLOBALS_MODULE_JEST_EXPORT_NAME
) {
return true;
Expand Down
3 changes: 2 additions & 1 deletion packages/jest-snapshot/src/inline_snapshots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ const createInsertionParser = (
CallExpression({node: {arguments: args, callee}}: {node: CallExpression}) {
if (
callee.type !== 'MemberExpression' ||
callee.property.type !== 'Identifier'
callee.property.type !== 'Identifier' ||
callee.property.loc == null
) {
return;
}
Expand Down
Loading

0 comments on commit 5fe8b08

Please sign in to comment.