fix(windows): fix a few more tests #935
Annotations
10 errors and 1 warning
Run tests:
test\bundler\bun-build-api.test.ts#L76
Expected:
"var __defProp = Object.defineProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, {
get: all[name],
enumerable: true,
configurable: true,
set: (newValue) => all[name] = () => newValue
});
};
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
// test/bundler/fixtures/trivial/fn.js
var exports_fn = {};
__export(exports_fn, {
fn: () => {
{
return fn;
}
}
});
function fn(a) {
return a + 42;
}
var init_fn = __esm(() => {
});
// test/bundler/fixtures/trivial/index.js
var NS = Promise.resolve().then(() => (init_fn(), exports_fn));
NS.then(({ fn: fn2 }) => {
console.log(fn2(42));
});
"
Received:
"var __defProp = Object.defineProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, {
get: all[name],
enumerable: true,
configurable: true,
set: (newValue) => all[name] = () => newValue
});
};
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
// test\bundler\fixtures\trivial\fn.js
var exports_fn = {};
__export(exports_fn, {
fn: () => {
{
return fn;
}
}
});
function fn(a) {
return a + 42;
}
var init_fn = __esm(() => {
});
// test\bundler\fixtures\trivial\index.js
var NS = Promise.resolve().then(() => (init_fn(), exports_fn));
NS.then(({ fn: fn2 }) => {
console.log(fn2(42));
});
"
at D:\a\bun\bun\test\bundler\bun-build-api.test.ts:76:5
|
Run tests:
test\bundler\expectBundled.ts#L1282
1 | // @Bun
2 | // entry.ts
3 | var {pathToFileURL, fileURLToPath } = globalThis.Bun;
4 | console.log(pathToFileURL(import.meta.path).href + " " + fileURLToPath(import.meta.url));
^
TypeError: File URL path must be absolute
at /$bunfs/root/out:4:58
at D:\a\bun\bun\test\bundler\expectBundled.ts:1282:17
at D:\a\bun\bun\test\bundler\expectBundled.ts:443:11
|
Run tests:
test\bundler\cli.test.ts#L32
Expected: 0
Received: 1
at testCompile (D:\a\bun\bun\test\bundler\cli.test.ts:32:7)
at D:\a\bun\bun\test\bundler\cli.test.ts:43:7
|
Run tests:
test\bundler\expectBundled.ts#L1295
Expected: "function undefined\nstring \"function\"\nobject {\"works\":true}\nobject {\"works\":true}\nnumber 567\nobject {\"works\":true}\nobject {\"works\":true}\nnumber 567\nstring \"/node_modules/some-path/index.js\"\nstring \"/node_modules/second-path/index.js\"\nobject {\"default\":123}\nobject {\"default\":567}"
Received: "function undefined\nstring \"function\"\nobject {\"works\":true}\nobject {\"works\":true}\nnumber 567\nobject {\"works\":true}\nobject {\"works\":true}\nnumber 567\nstring \"\\\\node_modules\\\\some-path\\\\index.js\"\nstring \"\\\\node_modules\\\\second-path\\\\index.js\"\nobject {\"default\":123}\nobject {\"default\":567}"
at D:\a\bun\bun\test\bundler\expectBundled.ts:1295:13
at D:\a\bun\bun\test\bundler\expectBundled.ts:443:11
|
Run tests:
test\bundler\expectBundled.ts#L1295
Expected: "function undefined\nstring \"function\"\nobject {\"works\":true}\nobject {\"works\":true}\nnumber 567\nobject {\"works\":true}\nobject {\"works\":true}\nnumber 567\nstring \"/node_modules/some-path/index.js\"\nstring \"/node_modules/second-path/index.js\"\nobject {\"default\":123}\nobject {\"default\":567}"
Received: "function undefined\nstring \"function\"\nobject {\"works\":true}\nobject {\"works\":true}\nnumber 567\nobject {\"works\":true}\nobject {\"works\":true}\nnumber 567\nstring \"\\\\node_modules\\\\some-path\\\\index.js\"\nstring \"\\\\node_modules\\\\second-path\\\\index.js\"\nobject {\"default\":123}\nobject {\"default\":567}"
at D:\a\bun\bun\test\bundler\expectBundled.ts:1295:13
at D:\a\bun\bun\test\bundler\expectBundled.ts:443:11
|
Run tests:
..\..\..\..\D:\a\bun\bun#L1
at readableByteStreamControllerShouldCallPull (:1:21)
at readableByteStreamControllerCallPullIfNeeded (:1:21)
at :18:251
|
Run tests:
test\cli\install\bun-add.test.ts#L163
Expected to contain: "error: MissingPackageJSON"
Received: "bun add v1.1.0-canary.148 (1c38b6c7)\n\nPanic: reached unreachable code\n\nbun has crashed :'(\n\n----- bun meta -----\nBun v1.1.0-canary.148 (1c38b6c7) Windows x64 \nAddCommand: bunfig \nElapsed: 9ms | User: 15ms | Sys: 46ms\nRSS: 55.82MB | Peak: 55.82MB | Commit: 89.55MB | Faults: 13787\n----- bun meta -----\n\nSearch GitHub issues https://bun.sh/issues or join in #windows channel in https://bun.sh/discord\n\nthread 1220 panic: reached unreachable code\n???:?:?: 0x7ff7416d15a6 in ??? (bun.exe)\n???:?:?: 0x7ff74165e534 in ??? (bun.exe)\n???:?:?: 0x7ff7415a2717 in ??? (bun.exe)\n???:?:?: 0x7ff74159bf5a in ??? (bun.exe)\n???:?:?: 0x7ff74159a0bb in ??? (bun.exe)\n???:?:?: 0x7ff7415a7379 in ??? (bun.exe)\n???:?:?: 0x7ff7415cd92c in ??? (bun.exe)\n???:?:?: 0x7ff7415e304d in ??? (bun.exe)\n???:?:?: 0x7ff7415e7edc in ??? (bun.exe)\n???:?:?: 0x7ff741692254 in ??? (bun.exe)\n???:?:?: 0x7ff74140159f in ??? (bun.exe)\n???:?:?: 0x7ff743e63fe3 in ??? (bun.exe)\n???:?:?: 0x7ff8e1114ddf in ??? (KERNEL32.DLL)\n???:?:?: 0x7ff8e267edaa in ??? (ntdll.dll)\n"
at D:\a\bun\bun\test\cli\install\bun-add.test.ts:163:3
|
Run tests:
..\..\..\..\D:\a\bun\bun#L1
at readableByteStreamControllerShouldCallPull (:1:21)
at readableByteStreamControllerCallPullIfNeeded (:1:21)
at :18:251
|
Run tests:
..\..\..\..\D:\a\bun\bun#L1
at readableByteStreamControllerShouldCallPull (:1:21)
at readableByteStreamControllerCallPullIfNeeded (:1:21)
at :18:251
|
Run tests:
..\..\..\..\D:\a\bun\bun#L1
at readableByteStreamControllerShouldCallPull (:1:21)
at readableByteStreamControllerCallPullIfNeeded (:1:21)
at :18:251
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/download-artifact@v3, thollander/actions-comment-pull-request@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
The logs for this run have expired and are no longer available.
Loading