miragejs / ember-cli-mirage

An Ember Addon to easily add Mirage JS to your Ember app.
http://ember-cli-mirage.com
MIT License
863 stars 441 forks source link

Create models/foo.js exporting a ShimModelClass #2551

Open bartocc opened 11 months ago

bartocc commented 11 months ago

This PR is here to illustrate this issue of discoverEmberDataModels with ShimModelClass

Run pnpm --filter="basic-app" start && open http://localhost:4200 to see the error in the console

You can also

Open in StackBlitz

cah-brian-gantzler commented 11 months ago

This https://github.com/miragejs/ember-cli-mirage/issues/2556 is related and after looking into it, it appears a test is done too late. See the issue.

gilest commented 6 months ago

Try rebasing now that #2569 is merged