mirror of
https://github.com/oven-sh/bun
synced 2026-02-13 12:29:07 +00:00
* Move ReadFile and WriteFile to separate file * Use libuv for Bun.write() * Update windows_event_loop.zig * build * Get bun-write tests to pass. Implement Bun.write with two files. * UPdate * Update * Update failing test list * update * More * More * More * More * Mark the rest * ok * oops * Update bun-write.test.js * Update blob.zig --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Dave Caruso <me@paperdave.net> Co-authored-by: Georgijs Vilums <georgijs.vilums@gmail.com>
30 lines
764 B
TypeScript
30 lines
764 B
TypeScript
import { bunEnv } from "harness";
|
|
import { bunExe } from "harness";
|
|
import { tempDirWithFiles } from "harness";
|
|
|
|
it("duplicate dependencies should warn instead of error", () => {
|
|
const package_json = JSON.stringify({
|
|
devDependencies: {
|
|
"empty-package-for-bun-test-runner": "1.0.0",
|
|
},
|
|
dependencies: {
|
|
"empty-package-for-bun-test-runner": "1.0.0",
|
|
},
|
|
});
|
|
|
|
const dir = tempDirWithFiles("07740", {
|
|
"package.json": package_json,
|
|
});
|
|
|
|
const proc = Bun.spawnSync([bunExe(), "install"], {
|
|
env: bunEnv,
|
|
cwd: dir,
|
|
stderr: "pipe",
|
|
});
|
|
|
|
const stderr = proc.stderr.toString("utf-8").trim();
|
|
|
|
expect(stderr).not.toContain("error: Duplicate dependency:");
|
|
expect(stderr).toContain("warn: Duplicate dependency");
|
|
});
|