Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated all imports for miragejs objects to be from miragejs #2246

Merged
merged 2 commits into from
Dec 1, 2021

Conversation

cah-brian-gantzler
Copy link
Collaborator

Internally for tests and such ember-cli-mirage still imported all the miragejs objects from the re-exported ones in ember-cli-mirage instead of miragejs proper.

Updated them.

@@ -52,9 +52,9 @@ Say we wanted to test that when the user visits a details route for a movie titl

```js
// mirage/factories/movie.js
import Mirage from 'ember-cli-mirage';
import Factory from 'ember-cli-mirage';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cah-briangantzler should this be import { Factory } from 'miragejs';?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep. Fixed it. Though IMO Most the of the Docs like this need removed. Ember-cli-mirage is no longer of the source of Factories. This same documentation exists in MirageJS. About 80% of the current Docs should be removed.

@@ -1,6 +1,7 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import {createServer, applyEmberDataSerializers} from 'ember-cli-mirage';
import {createServer } from 'miragejs';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cah-briangantzler minor, missing space in {createServer }

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@cah-brian-gantzler cah-brian-gantzler merged commit eb2ad9b into miragejs:master Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants