Skip to content

Commit

Permalink
fix(betterer 🐛): even more cache fixes (#746)
Browse files Browse the repository at this point in the history
  • Loading branch information
phenomnomnominal authored Jun 15, 2021
1 parent fb162bb commit ee4f944
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 871 deletions.
6 changes: 1 addition & 5 deletions packages/betterer/src/test/file-test/file-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,7 @@ function createTest(

let runFiles = runΩ.filePaths;
if (expectedΩ) {
runFiles = runFiles.filter((filePath) => {
const hasExpected = expectedΩ.filePaths.includes(filePath);
const isCached = contextΩ.checkCache(filePath);
return !hasExpected || !isCached;
});
runFiles = runFiles.filter((filePath) => !contextΩ.checkCache(filePath));
}

const cacheHit = runΩ.filePaths.length !== runFiles.length;
Expand Down
Loading

0 comments on commit ee4f944

Please sign in to comment.