mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 11:59:00 +00:00
* 1st revision of new util.inspect impl. (not done)
* fix util.types.isArrayBuffer
* fix some utl tests and bugs
* fix node:tty missing primordials
* fix utl stackoverflow handling & some tests
* narrow down diff. context test
* util.inspect indirect circulars optimization
* temp workaround for buggy is...Function checks
* impl. Map/Set/Iterator entries inspection
* fix bigint & symbol objects inspection
* error inspection fixes
* misc util tests stuff
* inline getExternalValue stub
* leftovers
* util.inspect promise internals
* run bun fmt
* commit make js changes
* cut out unnecessary utl files
* reorganize utl folder structure
* remove browserify buffer check
* Try to revert git messing up uws somehow
This reverts commit 2c27e16e7d.
* commit src/js/out files again
* redo this edit too
* refresh js/out files
* Removed uws submodule
* tidy up
* unused primordials
* run fmt
---------
Co-authored-by: dave caruso <me@paperdave.net>
15 lines
451 B
TypeScript
15 lines
451 B
TypeScript
import { test, expect } from "bun:test";
|
|
import { spawnSync } from "bun";
|
|
import { bunEnv, bunExe } from "harness";
|
|
|
|
test.skipIf(Bun.version.endsWith("debug"))("reportError", () => {
|
|
const cwd = import.meta.dir;
|
|
const { stderr } = spawnSync({
|
|
cmd: [bunExe(), new URL("./reportError.ts", import.meta.url).pathname],
|
|
cwd,
|
|
env: bunEnv,
|
|
});
|
|
const output = stderr.toString().replaceAll(cwd, "");
|
|
expect(output).toMatchSnapshot();
|
|
});
|