Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Not recognizing default parameters #216

@bashlyss

Description

@bashlyss
import _ from 'lodash';

const someObj = {
  fn: (onClick=_.noop) {
    /* do something */
    onClick();
  }
}

When running this in certain environments (specifically jest with --coverage flag), this code sample result in TypeError: Cannot read property 'noop' of undefined

This started happening when I added this plugin

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions