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 439 forks source link

Is it possible to have a custom folder for fixtures in mirage? #2499

Closed Jebakumargodwin closed 1 year ago

Jebakumargodwin commented 1 year ago

Under mirage/fixtures i would like to have 2 folders - folder-1 and folder-2 which will contain the fixtures.

Based on an environment variable ENVVAR1 i want to load the fixtures either in folder-1 or in folder-2

Is there a configuration in mirage where i can specify a custom folder path when loading fixtures?

Thanks

Jebakumargodwin commented 1 year ago

Another use case is i wish to organise mirage fixtures module by module

Could you please let me know if server.loadFixtures() supports loading such fixtures or should all the fixtures be listed under the mirage/fixtures folder?

Thanks

Jebakumargodwin commented 1 year ago

Found out how to do this.