Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude files by pattern #58

Open
Willey1986 opened this issue Sep 14, 2023 · 1 comment
Open

Exclude files by pattern #58

Willey1986 opened this issue Sep 14, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@Willey1986
Copy link

Hi,

coming from an angular project where normal files and test (spec) files are located next to each other it seems impossible to only check the *.ts files and skip the *.spec.ts files. Or did i mess up the configuration.

"plugins": [
  {
    "name": "typescript-strict-plugin",
    "paths": [
      "./src/app/folder1",
      "./src/app/folder2"
    ],
    "exclude": [
      // doesn't work
      "./src/app/folder1/**/*.spec.ts"
      // doesn't work
      "**/*.spec.ts"
      // even specifying the files directly seems to have no effect
      "./src/app/folder1/subfolder/some-test.spec.ts"
    ]
  }
]

Is ist simply not possible right now?

Thx for your help!

@kellyrmilligan
Copy link

related, I am having an issue where if I specify a path, like

./src/modules/dog

that it will also pick up other paths that start with the same letters, like

./src/modules/dogstuff

I have tried different ways:

./src/modules/dog/, still happens

as mentioned in this issue, globs don't seem to work.

any ideas?

KostkaBrukowa pushed a commit that referenced this issue Mar 8, 2024
* add minimatch (had to legacy peer deps)

* Extend the config

* Add file matching

* Unit test for matched by exclude pattern

* Update readme

* Adjust readme grammar

* Update version and changelog

* docs(58): Update changelog + lint

* fix(58): Update jest/ts-jest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants