Closed hasezoey closed 1 year ago
Hi @hasezoey did you ever figure this out?
Hi @hasezoey did you ever figure this out?
at least not with tsd
(this project here), so i looked for alternatives and found tsd-lite
(which has a similar name but is differently structured) and i used more specifically jest-runner-tsd
(which uses tsd-lite
) because it was "just what i needed" (by using jest) and was easy to integrate
if you want a example where jest-runner-tsd
is use (the project i initially searched it for):
@hasezoey Excellent, that's exactly what I'm after thanks for the pointers 👍
Currently having a basic tsd test in my project in
test/tests/types/test-init-d.ts
and runningyarn tsd ./test/tests/types
results in tsd throwing a error:and i have no clue where it tries to search or why it tries to search in
lib
when the main tsconfig says theoutDir
isbuild
Repository i am trying to run tsd in: https://github.com/typegoose/typegoose/tree/tsdError (
tsdError
branch) to get up and running:From the documentation i would assume that all tsd test files would have to have the suffix of
.test-d.ts
(or at first i tried-d.ts
) by default, though i am confused as to how tsd wants the typings files, does it want the raw.ts
files or does it want compiled.d.ts
files? and i also am confused as how it tries to read those files, becauselib
is clearly notbuild
as set intsconfig.json
'soutDir