json import fails
#1337
-
Hello Does vitest support import of json out of the box ? TypeError: Unknown file extension ".json" Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
Rvtea
May 23, 2022
Replies: 1 comment 5 replies
-
I workaround this via pass the |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
vinothvk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I workaround this via pass the
--experimental-json-modules
to the command via something like"test": "NODE_OPTIONS='--experimental-json-modules' vitest run"