Similar to #182, tsd will also display an error stack on failure (even if it didn't crash), e.g. when no index.d.ts is found:
Error running tsd:
Error: The type definition \`index.d.ts\` does not exist at \`.../fixtures/no-tsd/index.d.ts\`. Is the path correct? Create one and try again.
at .../lib/index.js:31:15
at Generator.next (<anonymous>)
at fulfilled (.../lib/index.js:5:58)
This should only show the error message:
The type definition \`index.d.ts\` does not exist at \`.../fixtures/no-tsd/index.d.ts\`. Is the path correct? Create one and try again.
This PR adds a custom TsdError to differentiate between the two cases:
Similar to #182,
tsd
will also display an error stack on failure (even if it didn't crash), e.g. when noindex.d.ts
is found:This should only show the error message:
This PR adds a custom
TsdError
to differentiate between the two cases: