mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
8 lines
299 B
TypeScript
8 lines
299 B
TypeScript
import { $ } from "bun";
|
|
import { expect, test } from "bun:test";
|
|
|
|
test("$ with Bun.file prints the path", async () => {
|
|
expect(await $`echo ${Bun.file(import.meta.path)}`.text()).toBe(`${import.meta.path}\n`);
|
|
expect(await $`echo ${import.meta.path}`.text()).toBe(`${import.meta.path}\n`);
|
|
});
|