Where to put .d.ts file for plugin? #2238
Closed
liborjelinek
started this conversation in
General
Replies: 1 comment 1 reply
-
I usually to put it at the root of the project, so maybe there is an issue. Can you provide us a small repro online using https://stackblitz.com/github/vuejs/create-vue-templates/tree/main/typescript-vitest?file=src%2Fcomponents%2F__tests__%2FHelloWorld.spec.ts ? It only takes a few minutes, and we'll be able to take a look |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am heavily using the plugin adding
findByText()
feature in this blogpost. (BTW you should add something like this to the VTU core. It is a must.)According to the docs on plugins I created
vue-test-utils.d.ts
with contentBut where to place it? My VS Code underline
findByText()
asProperty 'findByText' does not exist on type
error.Beta Was this translation helpful? Give feedback.
All reactions