Skip to content

Commit 5768b70

Browse files
committed
5.2.0: #70, #75: ts: adds more test cases for typescript
1 parent 950d665 commit 5768b70

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

test/ts/simple.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,16 @@ const {
5353
equal(ignored, false, 'not ignored')
5454
equal(unignored, false, 'not unignored')
5555

56-
// Readyonly array
56+
// Filter an Readyonly array
5757
const readonlyPaths = ['a', 'a/b', 'foo/bar'] as const
5858
ig.filter(readonlyPaths)
59+
60+
// Add an Readonly array of rules
61+
const ig6 = ignore()
62+
ig6.add([ig3, ig4] as const)
63+
64+
// options.ignoreCase and options.allowRelativePaths
65+
ignore({
66+
ignoreCase: false,
67+
allowRelativePaths: true
68+
})

0 commit comments

Comments
 (0)