1
0

ignore.test.ts 418 B

12345678910
  1. import { expect, test } from "bun:test"
  2. import { Ignore } from "@opencode-ai/core/filesystem/ignore"
  3. test("match nested and non-nested", () => {
  4. expect(Ignore.match("node_modules/index.js")).toBe(true)
  5. expect(Ignore.match("node_modules")).toBe(true)
  6. expect(Ignore.match("node_modules/")).toBe(true)
  7. expect(Ignore.match("node_modules/bar")).toBe(true)
  8. expect(Ignore.match("node_modules/bar/")).toBe(true)
  9. })