mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 19:38:58 +00:00
Get Next.js Pages Router to work (#6095)
* hell * make it so bun-debug-src * teag * wild * yippee * fas * fix async hooks assertions * yap * yeah that's wild * aa * a * increase time allowed * so trivial
This commit is contained in:
@@ -71,6 +71,17 @@ test("Overwriting _resolveFilename", () => {
|
||||
expect(exitCode).toBe(0);
|
||||
});
|
||||
|
||||
test("Overwriting Module.prototype.require", () => {
|
||||
const { stdout, exitCode } = Bun.spawnSync({
|
||||
cmd: [bunExe(), "run", path.join(import.meta.dir, "modulePrototypeOverwrite.cjs")],
|
||||
env: bunEnv,
|
||||
stderr: "inherit",
|
||||
});
|
||||
|
||||
expect(stdout.toString().trim().endsWith("--pass--")).toBe(true);
|
||||
expect(exitCode).toBe(0);
|
||||
});
|
||||
|
||||
test("Module.prototype._compile", () => {
|
||||
const module = new Module("module id goes here");
|
||||
const starting_exports = module.exports;
|
||||
|
||||
Reference in New Issue
Block a user