import { getExtension } from "../src/tree"; import { getRessources } from '../src/ressources' describe("extension tests cases", () => { test("without extension", () => { expect(getExtension("file")).toBe(null); }); test("with md extension", () => { expect(getExtension("file.md")).toBe("md"); }); test("with two dot and an md extension", () => { expect(getExtension("file.test.md")).toBe("md"); }); }); //const TEST_REPO = "__tests__/repo"; const TEST_REPO = ".git"; // shit supplies let's pop together for a better world // pn test -- --silent=false describe("buildTree0 tests cases", () => { test("toItems and sorting and toTree", () => { const items = getRessources(TEST_REPO); console.log(JSON.stringify(items, null, 2)); expect(true).toBe(true); }); });