Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 15, 2025. It is now read-only.
This repository was archived by the owner on Feb 15, 2025. It is now read-only.

Can't run tests since imported node modules aren't transpiled #496

@fc

Description

@fc

If I do this in a test:

import fetchMock from "fetch-mock";

It will generate this error:

PhantomJS 2.1.1 (Mac OS X 0.0.0) ERROR
  {
    "message": "SyntaxError: Unexpected token 'const'\nat webpack:///node_modules/tr46/index.js:3 <- tests/index-test.js:69813",
    "str": "SyntaxError: Unexpected token 'const'\nat webpack:///node_modules/tr46/index.js:3 <- tests/index-test.js:69813"
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions