mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
fix(windows): update some bundler tests (#8440)
* replace invalid path character * windows paths
This commit is contained in:
@@ -1050,7 +1050,7 @@ describe("bundler", () => {
|
||||
]);
|
||||
},
|
||||
});
|
||||
itBundled("ts/ExportType*", {
|
||||
itBundled("ts/ExportTypeSTAR", {
|
||||
files: {
|
||||
"/entry.ts": /* ts */ `
|
||||
export type * as Foo from "foo";
|
||||
|
||||
@@ -706,8 +706,11 @@ function expectBundled(
|
||||
}
|
||||
return { error, file: "<bun>" };
|
||||
}
|
||||
const [_str2, fullFilename, line, col] = source?.match?.(/bun-build-tests\/(.*):(\d+):(\d+)/) ?? [];
|
||||
const file = fullFilename?.slice?.(id.length + path.basename(outBase).length + 1);
|
||||
const [_str2, fullFilename, line, col] =
|
||||
source?.match?.(/bun-build-tests[\/\\](.*):(\d+):(\d+)/) ?? [];
|
||||
const file = fullFilename
|
||||
?.slice?.(id.length + path.basename(outBase).length + 1)
|
||||
.replaceAll("\\", "/");
|
||||
|
||||
return { error, file, line, col };
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user