blob: e2f99a9ed9ff0c4cdc26575f26221ff10d9cead6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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.',
);
});
});
|