Jest + TypeScript + Vue = bring to mind?

0 like 0 dislike
9 views
{{item.text}}import script from './script'export default script@import 'styles';


import Vue from 'vue' import { Prop, Emit, Component } from 'vue-property-decorator' import { IMenuItem } from '../types.d' // Remove the import and all good O_o @Component export default class Vue extends ListItem { @Prop({ type: Object, required: true }) item: IMenuItem @Emit('go') go(path: string = '/') { this.$router.push({ path }) } }


Someone with Vue + TS + Jest work?
Incomprehensible cant when running Unit tests.
If you try to import any type in Vue file, then the test crashes with the error: Debug Failure. False expression: Output generation failed

Maybe it's because @vue/test-utilsas test mutations pure Jest and such is no problem.
by | 9 views

1 Answer

0 like 0 dislike
Decided to rename the file types.d.ts in types.ts.
The problem apparently in jest-vue-preprocessor or @vue/test-utils (not yet found).
by

Related questions

0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
110,608 questions
257,186 answers
0 comments
33,713 users