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

Add support for Jest #285

Closed
Tracked by #85
hassankhan opened this issue Sep 2, 2018 · 1 comment · Fixed by #351
Closed
Tracked by #85

Add support for Jest #285

hassankhan opened this issue Sep 2, 2018 · 1 comment · Fixed by #351

Comments

@hassankhan
Copy link
Contributor

hassankhan commented Sep 2, 2018

Feature request description

It would be awesome if depcheck could exclude Jest as well as any transformer modules as per the documentation.

Code snippets (if applicable)

How the dependency is used (if applicable):

// jest.config.js
"transform": {
  ".(ts|tsx)": "ts-jest"
},

How the dependency is listed in package.json (if applicable):

package.json snippet here
please include the section name (e.g. devDependencies, dependencies)
{
  "devDependencies": {
    "jest": "^23.0.0"
  }
}
@mnkhouri
Copy link
Member

mnkhouri commented Sep 3, 2018

Hi @hassankhan, thank you for the detailed suggestion! Based on the documentation you linked, the detection seems fairly straightforward, so I think it should relatively easy to add this support as a "special", for example like babel.

If you have the time to try out a PR for this, it would be greatly appreciated! No problem if not, of course -- hopefully we can get to it soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants