mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
* Add .toBeOneOf * Fix memory leaks in .toContain(), .toInclude(), toContainKeys(), toBeTypeOf(), toEqualIgnoringWhitespace * Handle exception * Ignore non-bool * Propagate errors when the message callback throws * fixups * Update preload.ts * Update jest-extended.test.js * Update expect.zig * comments --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
20 lines
437 B
TypeScript
20 lines
437 B
TypeScript
import * as harness from "./harness";
|
|
|
|
// We make Bun.env read-only
|
|
// so process.env = {} causes them to be out of sync and we assume Bun.env is
|
|
for (let key in process.env) {
|
|
if (key === "TZ") continue;
|
|
delete process.env[key];
|
|
}
|
|
|
|
for (let key in harness.bunEnv) {
|
|
if (key === "TZ") continue;
|
|
if (harness.bunEnv[key] === undefined) {
|
|
continue;
|
|
}
|
|
|
|
process.env[key] = harness.bunEnv[key] + "";
|
|
}
|
|
|
|
Bun.$.env(process.env);
|