You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I'm testing my component with https://cli.vuejs.org/core-plugins/unit-jest.html and my component contains import VueMarkdown from 'vue-markdown-render';, then the Jest test runner fails with:
● Test suite failed to run
--
44 |
45 | /drone/src/node_modules/vue-markdown-render/dist/VueMarkdown.js:1
46 | ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){import Vue from "vue";
47 | ^^^^^^
48 |
49 | SyntaxError: Cannot use import statement outside a module
I can resolve the error by mockingvue-markdown-render with
When I'm testing my component with https://cli.vuejs.org/core-plugins/unit-jest.html and my component contains
import VueMarkdown from 'vue-markdown-render';
, then the Jest test runner fails with:I can resolve the error by mocking
vue-markdown-render
withBut with all other 3-rd party modules, I don't have to do this.
The text was updated successfully, but these errors were encountered: