From acefbe242177b5e2fa0fa0d7401a4940896adbf1 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Sat, 18 Oct 2025 18:40:31 -0700 Subject: [PATCH] Format + bump runtime transpiler cache version --- src/bun.js/RuntimeTranspilerCache.zig | 3 ++- test/js/bun/io/bun-write.test.js | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/bun.js/RuntimeTranspilerCache.zig b/src/bun.js/RuntimeTranspilerCache.zig index 7fa3c3e472..d6d3c8842b 100644 --- a/src/bun.js/RuntimeTranspilerCache.zig +++ b/src/bun.js/RuntimeTranspilerCache.zig @@ -13,7 +13,8 @@ /// Version 14: Updated global defines table list. /// Version 15: Updated global defines table list. /// Version 16: Added typeof undefined minification optimization. -const expected_version = 16; +/// Version 17: Removed transpiler import rewrite for bun:test. Not bumping it causes test/js/bun/http/req-url-leak.test.ts to fail with SyntaxError: Export named 'expect' not found in module 'bun:test'. +const expected_version = 17; const debug = Output.scoped(.cache, .visible); const MINIMUM_CACHE_SIZE = 50 * 1024; diff --git a/test/js/bun/io/bun-write.test.js b/test/js/bun/io/bun-write.test.js index 804f62d032..02ee7f7582 100644 --- a/test/js/bun/io/bun-write.test.js +++ b/test/js/bun/io/bun-write.test.js @@ -1,9 +1,7 @@ import { describe, expect, it, test } from "bun:test"; import fs, { mkdirSync } from "fs"; -import { bunEnv, bunExe, exampleHtml, exampleSite, gcTick, isWindows, withoutAggressiveGC, tempDir } from "harness"; -import { tmpdir } from "os"; +import { bunEnv, bunExe, exampleHtml, exampleSite, gcTick, isWindows, tempDir, withoutAggressiveGC } from "harness"; import path, { join } from "path"; -import { beforeEach, afterEach } from "bun:test"; let i = 0; const IS_UV_FS_COPYFILE_DISABLED =