recipe/packages/shared/__tests__/unit/dir.spec.ts

12 lines
349 B
TypeScript
Raw Normal View History

2024-08-18 19:16:25 +08:00
/* eslint-disable @typescript-eslint/naming-convention */
import { expect, it } from "vitest";
import { path } from "vuepress/utils";
import { getDirContents } from "../../src/node/utils/dir.js";
it("should list dir correctly", () => {
expect(
getDirContents(path.resolve(__dirname, "./__fixtures__")),
).toMatchSnapshot();
});