We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is the source code:
// foo.ts export function used() {} export function unused() {}
and the spec files:
- foo.ts - foo.spec/ +-- used.spec.ts +-- unused.spec.ts
When I removed the unused function by knip, I wanted also to remove the foo.spec/unused.spec.ts, but keep foo.spec/used.spec.ts
unused
foo.spec/unused.spec.ts
foo.spec/used.spec.ts
The text was updated successfully, but these errors were encountered:
Does that work already if you run knip twice? Like so:
knip --production --fix knip --fix --allow-remove-files
Edit: I guess it won't delete the file, usually *.spec.ts is an entry file.
*.spec.ts
Sorry, something went wrong.
No branches or pull requests
Suggest an idea for Knip
This is the source code:
and the spec files:
When I removed the
unused
function by knip, I wanted also to remove thefoo.spec/unused.spec.ts
, but keepfoo.spec/used.spec.ts
The text was updated successfully, but these errors were encountered: