Skip to content

Commit

Permalink
fixup! fixup! test(build): avoid race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Oct 17, 2023
1 parent 0960c50 commit 8e4edc6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions testing/tests/destructive.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,17 @@ describe("fixing flaws", () => {
);

expect(wouldModify).toHaveLength(4);
expect(wouldModify).toContain(path.join(root, pattern, "index.html"));
expect(wouldModify).toContain(
path.join(root, pattern, "bad_pre_tags", "index.html")
path.join(root, "en-us", pattern, "index.html")
);
expect(wouldModify).toContain(
path.join(root, pattern, "deprecated_macros", "index.html")
path.join(root, "en-us", pattern, "bad_pre_tags", "index.html")
);
expect(wouldModify).toContain(
path.join(root, pattern, "images", "index.html")
path.join(root, "en-us", pattern, "deprecated_macros", "index.html")
);
expect(wouldModify).toContain(
path.join(root, "en-us", pattern, "images", "index.html")
);

const dryrunFiles = getChangedFiles(tempContentDir);
Expand Down

0 comments on commit 8e4edc6

Please sign in to comment.