Open bramses opened 9 months ago
Hi @bramses
This jest
issue is troublesome. If possible, please try using vitest
. It might not cause the error.
@yusukebe ok ill try it and let you know. Is OpenAPIHono
built on Vite?
@bramses
Is
OpenAPIHono
built on Vite?
No. But, it uses esbuild
which is also used in Vite.
Running Jest on the original Hono works fine
results in an expected failure (endpoint not setup):
Simply converting to OpenAPIHono causes tests to not compile successfully:
it seems that one of the node_modules,
yaml
is failing to mock.Jest config is the same across both runs:
same with
tsconfig
: