Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Sep 19, 2024
1 parent b15279f commit 4146465
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions integration/vite-prerender-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ function listAllFiles(_dir: string) {
return recurse(absolute);
}
} else {
console.log({ dir, file, absolute });
return files.push(absolute);
}
});
Expand All @@ -128,16 +127,7 @@ function listAllFiles(_dir: string) {
recurse(_dir);

// Normalize *nix/windows paths
return files.map((f) => {
console.log({
dir: _dir,
f,
relative: path.relative(_dir, f),
relative2: f.replace(_dir, "").replace(/^\\/, ""),
result: path.relative(_dir, f).replace("\\", "/"),
});
return f.replace(_dir, "").replace(/^\\/, "");
});
return files.map((f) => f.replace(_dir, "").replace(/^\//, ""));
}

test.describe("Prerendering", () => {
Expand Down

0 comments on commit 4146465

Please sign in to comment.