question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

passthrough doesn't work when all tests are run, but does when a single test is run.

See original GitHub issue

in 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:closed
  • Created 8 years ago
  • Comments:10

github_iconTop GitHub Comments

3reactions
phikescommented, May 14, 2016

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.

2reactions
samselikoffcommented, Mar 21, 2016

I don’t, not on github. Could you try adding server.shutdown() to your afterEach hook in your acceptance test? Also, what version of Mirage are you on?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found