作者:HenryJuliju | 来源:互联网 | 2023-09-13 10:32
Hey i found a bug that is related to unit tests. I don't really know if this is the right place but to post a vue related bug into the ts-jest repo seems kinda strange.
Situation:
I have a component
that is using a globally registered component
.
Component
is loaded async into the app.
Problem:
If component
is written in typescript with
and is loaded async, a jest test can't find the globally registered component
.
If component
is written without typescript it will work perfectly fine.
Here is a reproduction setup with vue-cli:
https://github.com/MrWook/ts-jest-bug
该提问来源于开源项目:vuejs/vue-class-component
For documentation reason here is the link for my new issue. Seems like that vue-test-utils is the correct repository to adress this issue
https://github.com/vuejs/vue-test-utils/issues/1448