Closed Jebakumargodwin closed 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
Found out how to do this.
environment.js -> ENV['ember-cli-mirage'] -> fixturesPath
, orenvironment.js -> ENV['ember-cli-mirage'] -> directory
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