Skip to content

Commit

Permalink
5.2.0: #70, #75: ts: adds more test cases for typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
kaelzhang committed Dec 19, 2021
1 parent 950d665 commit 5768b70
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion test/ts/simple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@ const {
equal(ignored, false, 'not ignored')
equal(unignored, false, 'not unignored')

// Readyonly array
// Filter an Readyonly array
const readonlyPaths = ['a', 'a/b', 'foo/bar'] as const
ig.filter(readonlyPaths)

// Add an Readonly array of rules
const ig6 = ignore()
ig6.add([ig3, ig4] as const)

// options.ignoreCase and options.allowRelativePaths
ignore({
ignoreCase: false,
allowRelativePaths: true
})

0 comments on commit 5768b70

Please sign in to comment.