blob: 5eb0db8980aca261929210c8fe0b6850fe8847e7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
import { describe, it, expect, beforeEach, afterEach, test } from "bun:test";
test("not implemented yet module masquerades as undefined and throws an error", () => {
const worker_threads = import.meta.require("worker_threads");
expect(typeof worker_threads).toBe("object");
expect(typeof worker_threads.foo).toBe("undefined");
expect(() => worker_threads.foo()).toThrow("Not implemented yet in Bun :(");
});
|