Skip to content

Could not find module npm:fetch-mock trying to test ember-network/fetch #113

Description

@stephencattaneo

Hi. I'm trying to write a test with ember-network/fetch. The testing section (https://github.com/tomdale/ember-network#testing ) says to

npm install fetch-mock
ember install ember-browserify

Then in a test do

import fetchMock from 'npm:fetch-mock';

In a brand new ember-cli project I'm getting --

Could not find module `npm:fetch-mock` imported from `ember-sandbox/tests/acceptance/root-test`

repo for reproduction -- https://github.com/stephencattaneo/ember-browserify-issue/
test -- https://github.com/stephencattaneo/ember-browserify-issue/blob/master/tests/acceptance/root-test.js

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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