Mmatch
Bun

method

Glob.match

str: string
): boolean;

Match the glob against a string

const glob = new Glob("*.{ts,tsx}");
expect(glob.match('foo.ts')).toBeTrue();