Cannot seem to import jwtVerify from a TypeScript file and run jest tests against it #145
Closed
2 tasks done
Labels
duplicate
This issue or pull request already exists
Describe the bug
When importing
jwtVerify
from a .ts file and trying to leverage exported function from jest .ts tests, we're getting import related errorsTo Reproduce
A complete end to end repro case is available at https://github.com/nulltoken/jose-import-repro-case
clone, then run
yarn
.yarn build
doesn't report any error)In order to help studying the repro case, a GitHub action has been created => https://github.com/nulltoken/jose-import-repro-case/blob/main/.github/workflows/main.yml
Results of latest run can be audited at https://github.com/nulltoken/jose-import-repro-case/runs/1702720189?check_suite_focus=true
Expected behaviour
Full disclosure: I may not be properly importing the lib (the README doesn't explicitly describe the recommended way to import from TypeScript)
If jose 3.5.1 is supposed to work in the described usage, an update in the README would be great.
If this is a bug, well... I'd really enjoy being able to use this lib and run jest based TypeScript tests against functions leveraging it.
Environment:
jose
version: 3.5.1Additional context
Add any other context about the problem here.
jose
too.The text was updated successfully, but these errors were encountered: