Closed timlar closed 3 years ago
Thanks for the bug report. Interesting - file
is missing in newMap
.
I can try reproduce this and debug it. This should definitely work - I don't see any immediately problem.
Did Alpha.9 fix this?
I tried with alpha.9 and it seems to work. At least shallowMount
renders the component without errors. Thanks.
Seems like it's okay. Closing.
Can reopen if more issues arise.
Faced an error while executing
shallowMount
(this also applies tomount
).The error occurs only if the component contains a
<script>
block. If there is only<template>
block in the component, then everything works.I tried to investigate the issue. In
vue-jest/lib/map-lines.js:12
the variablenewMapConsumer
is a Promise which does not haveeachMapping
function.The value of
oldMap
is:The value of
newMap
is:Maybe I do something wrong.
Thanks in advance for any help.