miragejs / mirage-msw

4 stars 4 forks source link

Passthrough using relative URL #14

Open mrloop opened 11 months ago

mrloop commented 11 months ago

ember-cli-code-coverage suggests using this.passthrough('/write-coverage'); when using ember-cli-mirage. With mirage-msw I'm using this.passthrough(`${location.origin}/write-coverage`); otherwise get an error. Should mirage-msw passthrough support relative URLs?

https://github.com/ember-cli-code-coverage/ember-cli-code-coverage#create-a-passthrough-when-intercepting-all-ajax-requests-in-tests