mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 20:09:04 +00:00
17 lines
568 B
TypeScript
17 lines
568 B
TypeScript
import { bunEnv, bunExe } from "harness";
|
|
import path from "path";
|
|
import { describe, expect, test } from "bun:test";
|
|
|
|
describe("bun build", () => {
|
|
test("warnings dont return exit code 1", () => {
|
|
const { stderr, exitCode } = Bun.spawnSync({
|
|
cmd: [bunExe(), "build", path.join(import.meta.dir, "./fixtures/jsx-warning/index.jsx")],
|
|
env: bunEnv,
|
|
});
|
|
expect(exitCode).toBe(0);
|
|
expect(stderr.toString("utf8")).toContain(
|
|
'warn: "key" prop before a {...spread} is deprecated in JSX. Falling back to classic runtime.',
|
|
);
|
|
});
|
|
});
|