()
| 517 | }; |
| 518 | |
| 519 | function readTestState() { |
| 520 | const testStateFile = getTestStateFilePath(); |
| 521 | let testState; |
| 522 | if (files.exists(testStateFile)) { |
| 523 | testState = JSON.parse(files.readFile(testStateFile, 'utf8')); |
| 524 | } |
| 525 | if (! testState || testState.version !== 1) { |
| 526 | testState = { version: 1, lastPassedHashes: {} }; |
| 527 | } |
| 528 | return testState; |
| 529 | }; |
| 530 | |
| 531 | function writeTestState(testState) { |
| 532 | const testStateFile = getTestStateFilePath(); |
no test coverage detected
searching dependent graphs…