mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
13 lines
356 B
JavaScript
13 lines
356 B
JavaScript
import url from "node:url";
|
|
import { prettierCliMockableEntry } from "../env.js";
|
|
|
|
async function getCliMockable() {
|
|
const cli = await import(url.pathToFileURL(prettierCliMockableEntry));
|
|
return cli.mockable;
|
|
}
|
|
|
|
test("isCI", async () => {
|
|
const mockable = await getCliMockable();
|
|
expect(typeof mockable.implementations.isCI()).toBe("boolean");
|
|
});
|