File size: 418 Bytes
3e05655
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import { expect, test } from "bun:test"
import { Ignore } from "@opencode-ai/core/filesystem/ignore"

test("match nested and non-nested", () => {
  expect(Ignore.match("node_modules/index.js")).toBe(true)
  expect(Ignore.match("node_modules")).toBe(true)
  expect(Ignore.match("node_modules/")).toBe(true)
  expect(Ignore.match("node_modules/bar")).toBe(true)
  expect(Ignore.match("node_modules/bar/")).toBe(true)
})