Skip to content
This repository was archived by the owner on Dec 26, 2018. It is now read-only.
This repository was archived by the owner on Dec 26, 2018. It is now read-only.

if you delete the package-lock.json and npm install tests do not work #15

@zhideng

Description

@zhideng

When you clone the project "npm run test" works. However if I delete the package-lock.json and perform an "npm i" to reinstall all the modules(a new lock file gets created) I get the following error:

TypeError: Super expression must either be null or a function

I was trying to use this guide to setup mocha based unit tests but was getting errors because I installed the node modules that were needed to run but my own project was throwing that error. As I troubleshooted I ended up finding out it was the package-lock.json file. I think this is important because users will be installing mocha unit testing dependencies and it will not run on their projects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions