diff --git a/LATEST b/LATEST index a93a6f7571..f0bb29e763 100644 --- a/LATEST +++ b/LATEST @@ -1 +1 @@ -1.2.23 +1.3.0 diff --git a/package.json b/package.json index 372a9d596e..49133e9dae 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "bun", - "version": "1.2.24", + "version": "1.3.0", "workspaces": [ "./packages/bun-types", "./packages/@types/bun" diff --git a/src/bun.js/test/ScopeFunctions.zig b/src/bun.js/test/ScopeFunctions.zig index 599b1ae14c..4f856a6e45 100644 --- a/src/bun.js/test/ScopeFunctions.zig +++ b/src/bun.js/test/ScopeFunctions.zig @@ -279,7 +279,7 @@ fn genericExtend(this: *ScopeFunctions, globalThis: *JSGlobalObject, cfg: bun_te fn errorInCI(globalThis: *jsc.JSGlobalObject, signature: []const u8) bun.JSError!void { if (bun.detectCI()) |_| { - return globalThis.throwPretty("{s} is not allowed in CI environments.\nIf this is not a CI environment, set the environment variable CI=false to force allow.", .{signature}); + return globalThis.throwPretty("{s} is disabled in CI environments to prevent accidentally skipping tests. To override, set the environment variable CI=false.", .{signature}); } } diff --git a/src/bun.js/test/expect.zig b/src/bun.js/test/expect.zig index acfec2bf32..4f0a1ae4ca 100644 --- a/src/bun.js/test/expect.zig +++ b/src/bun.js/test/expect.zig @@ -747,7 +747,7 @@ pub const Expect = struct { if (bun.detectCI()) |_| { if (!update) { const signature = comptime getSignature(fn_name, "", false); - return this.throw(globalThis, signature, "\n\nMatcher error: Inline snapshot updates are not allowed in CI environments unless --update-snapshots is used\nIf this is not a CI environment, set the environment variable CI=false to force allow.", .{}); + return this.throw(globalThis, signature, "\n\nMatcher error: Updating inline snapshots is disabled in CI environments unless --update-snapshots is used.\nTo override, set the environment variable CI=false.", .{}); } } var buntest_strong = this.bunTest() orelse { diff --git a/test/bundler/bundler_bun.test.ts b/test/bundler/bundler_bun.test.ts index f8cd17a7f1..1034e8286b 100644 --- a/test/bundler/bundler_bun.test.ts +++ b/test/bundler/bundler_bun.test.ts @@ -137,7 +137,7 @@ error: Hello World`, }, run: { stdout: "" }, }); - if (Bun.version.startsWith("1.2")) { + if (Bun.version.startsWith("1.3") || Bun.version.startsWith("1.2")) { for (const backend of ["api", "cli"] as const) { itBundled("bun/ExportsConditionsDevelopment" + backend.toUpperCase(), { files: { diff --git a/test/js/bun/test/ci-restrictions.test.ts b/test/js/bun/test/ci-restrictions.test.ts index bc13db7d98..70725a3d41 100644 --- a/test/js/bun/test/ci-restrictions.test.ts +++ b/test/js/bun/test/ci-restrictions.test.ts @@ -55,7 +55,7 @@ test.only("should fail in CI", () => { expect(exitCode).toBe(1); expect(stderr).toContain( - "error: test.only is not allowed in CI environments\nIf this is not a CI environment, set the environment variable CI=false to force allow.", + "error: .only is disabled in CI environments to prevent accidentally skipping tests. To override, set the environment variable CI=false.", ); }); @@ -84,7 +84,7 @@ describe.only("CI test", () => { expect(exitCode).toBe(1); expect(stderr).toContain( - "error: describe.only is not allowed in CI environments\nIf this is not a CI environment, set the environment variable CI=false to force allow.", + "error: .only is disabled in CI environments to prevent accidentally skipping tests. To override, set the environment variable CI=false.", ); }); }); @@ -246,7 +246,7 @@ test("new inline snapshot", () => { const [stdout, stderr, exitCode] = await Promise.all([proc.stdout.text(), proc.stderr.text(), proc.exited]); expect(exitCode).toBe(1); - expect(stderr).toContain("Inline snapshot updates are not allowed in CI environments"); + expect(stderr).toContain("Updating inline snapshots is disabled in CI environments"); }); test("toMatchInlineSnapshot should work for new inline snapshots when CI=false", async () => {