Files
2026-08-27 21:09:14 +00:00

39 lines
917 B
TypeScript

import { expect, test } from "bun:test";
import { bunExe, tempDir } from "harness";
test("11806", () => {
using dir = tempDir("11806", {
"package.json": JSON.stringify({
"name": "project",
"workspaces": ["apps/*"],
}),
"apps": {
"api": {
"package.json": JSON.stringify({
"name": "api",
"jest": {
"testRegex": ".*\\.spec\\.ts$",
},
"devDependencies": {
"typescript": "^5.7.3",
},
}),
},
},
});
const result1 = Bun.spawnSync({
cmd: [bunExe(), "install"],
stdio: ["inherit", "inherit", "inherit"],
cwd: dir + "/apps/api",
});
expect(result1.exitCode).toBe(0);
const result2 = Bun.spawnSync({
cmd: [bunExe(), "add", "--dev", "typescript"],
stdio: ["inherit", "inherit", "inherit"],
cwd: dir + "/apps/api",
});
expect(result2.exitCode).toBe(0);
});