Fix ignore patterns
This commit is contained in:
parent
287a4e15b4
commit
b17f34d402
1 changed files with 30 additions and 2 deletions
10
frontend/sync-client/src/utils/globs-to-regexes.test.ts
Normal file
10
frontend/sync-client/src/utils/globs-to-regexes.test.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import { Logger } from "../tracing/logger";
|
||||
import { globsToRegex } from "./globs-to-regexes";
|
||||
|
||||
describe("globsToRegexes", () => {
|
||||
it("basicExample", async () => {
|
||||
const regex = globsToRegex([".git/**"], new Logger())[0];
|
||||
|
||||
expect(regex.test(".git/objects/object")).toBeTruthy();
|
||||
});
|
||||
});
|
||||
Loading…
Reference in a new issue