-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Files in `karma/static/*` were always read from file system. These files typically don’t change (except when developing Karma itself) and so it makes sense to cache them in memory. Especially `./static/context.html`, which is read for every test run. The main reason for this change is that when using native events (non-polling), watching can easily hit the EMFILE limit and then this `fs.readFile()` can be super delayed. This was easily reproducible problem in AngularJS test suite.
- Loading branch information
Showing
2 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters