Skip to content

Commit

Permalink
Failing Unknown file system error on Windows in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Dec 20, 2024
1 parent a795118 commit e9d320d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -544,24 +544,22 @@ test("Keep a cache, don’t reuse with if the image changes, check promise equal
t.not(promise1, promise2);
});

test("Keep a cache, don’t reuse with if the image changes, check output", async t => {
let outputPathTemp = path.join(os.tmpdir(), "generated-modify2-bio.jpg");
let method = os.platform() === "win32" && process.env.GITHUB_ACTIONS ? test.failing : test;
method("Keep a cache, don’t reuse with if the image changes, check output", async t => {
let outputPathTemp = "./test/generated-modify2-bio.jpg";

fs.copyFileSync("./test/modify2-bio-original.jpg", outputPathTemp);

let stats1 = await eleventyImage(outputPathTemp, {
outputDir: "./test/img/",
});

// fs.unlinkSync(outputPathTemp);
fs.copyFileSync("./test/modify2-bio-grayscale.jpg", outputPathTemp);

let stats2 = await eleventyImage(outputPathTemp, {
outputDir: "./test/img/",
});

// fs.unlinkSync(outputPathTemp);

t.notDeepEqual(stats1, stats2);

t.is(stats1.jpeg.length, 1);
Expand Down

0 comments on commit e9d320d

Please sign in to comment.