Closed wasmake closed 1 year ago
Would you like to send a Pull Request to address this issue? Remember to add unit tests.
cc @fastify/typescript
I assume the error comes from built code.
Anyone testing with tap
should not build the code beforehand.
It will import the js
version precedence than ts
version when allowJS
enabled.
Can you try to remove allowJS and run the tests again?
Closing due to inactivity
Prerequisites
Fastify version
3.28.0
Plugin version
No response
Node.js version
16.10
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
Monterey 12.3.1
Description
When using Tap with TypeScript, ts-node fails to compile the Typescript code.
Steps to Reproduce
tsconfig.json
Plugin implementation
To register tsconfig with node-tap:
Package.json
Running npm run test
Expected Behavior
To pass, but it rather fails on the line of adding a hook with the already mentioned error.