You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given we import a TS type,
When we use that type in vue's defineProps<> API,
We get an error when running the unit tests:
[@vue/compiler-sfc] No fs option provided to `compileScript` in non-Node environment. File system access is required for resolving imported types.
/Users/user/repos/vue-jest-reproduction-example/src/components/Example.vue
6 | import type {ExampleProps} from "@/components/ExampleProps";
7 |
8 | const data = defineProps<ExampleProps>();
| ^^^^^^^^^^^^
Reproduction repository: https://github.com/mschwebler-tgm/vue-jest-reproduction-example
Problem description
Given we import a TS type,
When we use that type in vue's
defineProps<>
API,We get an error when running the unit tests:
Node: 18.20.4
npm: 10.7.0
jest: 29.7.0
vue: 3.4.38
@vue/vue3-jest: 29.2.6
Details
Steps to reproduce
npm i
npm run test
The text was updated successfully, but these errors were encountered: