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

Allow for setupMirage to pass options to startMirage #2371

Merged
merged 1 commit into from
Mar 21, 2022

Conversation

cah-brian-gantzler
Copy link
Collaborator

Fixes: #2370

startMirage takes an options parameter to aid in creating the server. Allowed setupMirage to also take an options param and pass to startMirage.

@dfreeman Not good with TS. Could you make a followup PR after this is merged to update the test-support.d.ts if thats where the types should go. Since these options are passed to startMirage, it should also have a type def, there are times when it can be called directly, which may mean the default export from mirage/config.js may also need a type.

@cah-brian-gantzler cah-brian-gantzler merged commit 3479cef into miragejs:master Mar 21, 2022
@cah-brian-gantzler cah-brian-gantzler deleted the pass-config branch March 21, 2022 21:00
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.

Proposal to change of Mirage Setup
2 participants