Skip to content

Conversation

whitneyit
Copy link

This PR adds a --pass-with-no-tests option.

This allows for parity with vitest's --passWithNoTests and jest's --passWithNoTests options.

This allows for parity with vitest's [`--passWithNoTests`](https://vitest.dev/guide/cli.html#passwithnotests) and jest's [`--passWithNoTests`](https://jestjs.io/docs/cli#--passwithnotests) options.
@whitneyit whitneyit changed the title This PR adds a --pass-with-no-tests option. Add --pass-with-no-tests option Jul 10, 2025
@mrazauskas
Copy link
Contributor

mrazauskas commented Jul 10, 2025

Just use directory option to point tsd to any exiting directory.

In package.json you should add:

"tsd": {
  "directory": "src"
}

and tsd will pass without tests.


Or simply try: npx tsd --files .

@whitneyit
Copy link
Author

I understand those approaches exist. However, those workarounds do not address the use case that this type of flag is commonly intended for.

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

Successfully merging this pull request may close these issues.

2 participants