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.

Web-server always serve cached files to karma runners

See original GitHub issue

It looks like the webpack-dev-server always serve a cached versions of my specs when running with grunt-watch and karma:unit:run mode. I’ve already tried to set cache: false in karma’s webpack config but it didn’t help.

Is there something I’m missing here?

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
johanneslumpecommented, Oct 17, 2015

@sokra Just came across this - does this issue also include karma running tests twice? Once on save (old tests) and once after the new tests are compiled. Could this be related to karma-webpack or is that just a karma issue? Sorry for posting here in case this doesn’t belong here.

0reactions
quantuminformationcommented, May 23, 2016

karma start works ok, but have the caching issue with Webstorm running karma

Read more comments on GitHub >

github_iconTop Results From Across the Web

Web-server always serve cached files to karma runners #9
It looks like the webpack-dev-server always serve a cached versions of my specs when running with grunt-watch and karma:unit:run mode.
Read more >
Karma: no cache on file server - Stack Overflow
I guess karma relies on cache having auto-watch mode in mind. Karma-runner wants to restart tests as quickly as possible, that's possibly why...
Read more >
Files - Karma test runner
The files array determines which files are included in the browser, watched, ... Should the files be served from disk on each request...
Read more >
Collecting test data - CircleCI
When you run tests in CircleCI there are two ways to store your test results. You can either use artifacts or the store_test_results...
Read more >
Caching - webpack
This guide focuses on the configuration needed to ensure files produced by webpack compilation can remain cached unless their content has changed. Output ......
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