passthrough doesn't work when all tests are run, but does when a single test is run.
See original GitHub issuein my test environment, I have this:
ENV['ember-cli-mirage'] = {
enabled: false
};
when that is uncommented, I see in the network panel of the chrome inspector a call to write-blanket-coverage
which is great! however, when re-enable ember-cli-mirage (by commenting out the above snippet), the call to that path isn’t let through, even though, I have this defined:
// app/mirage/config.js
this.passthrough('/write-blanket-coverage', ['post']);
however, if I click re-run on any test, it appears to work, the call to write-blanket-coverage
is allowed through.
ref:
Issue Analytics
- State:
- Created 8 years ago
- Comments:10
Top Results From Across the Web
Unit test fails when running all, but passes ... - Stack Overflow
When I do "Run all", 3 of them will always fail. If I run them one by one using "Run selected test", they...
Read more >[Solved] Windows 10 npm vesion throws Passthrough is not ...
node_modules\.bin\cypress open opens the Cypress IDE. I can run my tests from the Cypress IDE (both Electron 93 and Chrome 96 work).
Read more >How to only run a specific Dusk test? - Laracasts
I don't want to run all of them as it takes forever, only want to run the one I'm currently working on. Can't...
Read more >Our TV Input Tests: Audio Passthrough - RTINGS.com
Audio passthrough is a way for you to connect multiple devices to your TV and pass high-quality audio signals to a receiver, which...
Read more >Testing at warp speed: Why you should care about your test ...
Three test runs, several minutes each, means a lot of time spent just waiting for tests to run. And more often than not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The
server.shutdown()
worked for me. My coverage was not generated with the same error but I did not have the import-statement in my acceptance tests.I don’t, not on github. Could you try adding
server.shutdown()
to yourafterEach
hook in your acceptance test? Also, what version of Mirage are you on?