tape-testing / tape

tap-producing test harness for node and browsers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suggestion: Ignore pattern directly instead of pointing to a file?

ppati000 opened this issue · comments

The --ignore flag does not take a glob pattern, but a path to a file that contains the ignored patterns. This level of indirection is not always needed. For example, I'd love to have a simple command that runs all *.test.ts files except for files in a specific directory (e.g., a directory that contains end-to-end tests).

@ljharb what do you think about adding an --ignorePattern or similar option that takes a glob pattern? Would be willing to raise a PR :)

That does seem reasonable - basically, shorthand for a one-line ignore file.

Note, that we'd have to be very very explicit about how --ignore and --ignorePattern worked together - either they're mutually exclusive, or ignorePattern is concatenated to --ignore's contents, or the reverse.

@ljharb awesome, just opened #587. See the description there! :)