gaearon / react-hot-loader
Showing 1 of 2 files from the diff.
Other files ignored by Codecov

@@ -64,5 +64,9 @@
Loading
64 64
65 65
// These counters tracks HMR generations, and probably should be used instead of the old one
66 66
let hotReplacementGeneration = 0;
67 -
export const incrementHotGeneration = () => hotReplacementGeneration++;
67 +
export const incrementHotGeneration = () => {
68 +
  if (!hotComparisonOpen()) {
69 +
    hotReplacementGeneration++;
70 +
  }
71 +
};
68 72
export const getHotGeneration = () => hotReplacementGeneration;
Files Coverage
src 79.72%
testConfig 85.00%
index.js 20.83%
test/proxy/helper.js 100.00%
Project Totals (39 files) 79.10%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading