Skip to content

[proposal] use globs instead of regex in config #926

@boujeepossum

Description

@boujeepossum

Regexes are very hard to get right when you're setting up a new project, especially when they're inside a .json file.

i was thinking maybe using something like https://github.com/fitzgen/glob-to-regexp

regex config can also be preserved, e.g.:

{
  "jest": {
    "testPathIgnorePatterns": ["**/__tests__/**/*.js"],
    "testPathPattern": "__tests__/*-test.js*"
}

or

{
  "jest": {
    "testPathPatternRegex": ".*\\.js"
  }
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions