mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
8 lines
337 B
JavaScript
8 lines
337 B
JavaScript
import { expect, test } from "bun:test";
|
|
|
|
test("not implemented yet module throws an error", () => {
|
|
const missingModule = "node:missing" + "";
|
|
expect(() => require(missingModule)).toThrow(/^Cannot find package "node:missing" from "/);
|
|
expect(() => import(missingModule)).toThrow(/^Cannot find package "node:missing" from "/);
|
|
});
|