Closed LinsRock closed 3 years ago
I don't think you need tsx
in the lang - just ts
.
See here for example Jest and Babel configs:
Do you have the JSX babel plugin for Vue? This one: https://github.com/vuejs/vue-test-utils-next/blob/94e1f287ba944c6c766a918d7611f5a4c42e0c0d/package.json#L25
I cannot debug this without a repository and all your dependencies. Either way, this looks like a config problem, not an actual bug, so I'm closing this. I can help you debug if you provide a repository, but it's probably faster for you to just look at Vue Test Utils which has TSX working and use that as a guide.
I have: button.vue
jest.config.js
when I run button.spec.ts error 48 | render: function () { 49 | var _a = this.buttonStyleComputed, ButtonTag = _a.buttonTag, buttonSvg = _a.buttonSvg, buttonPrimary = _a.buttonPrimary, buttonDisabled = _a.buttonDisabled, buttonBgImage = _a.buttonBgImage;