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
select the following options: Babel, Typescript, Vuex, Linter / Formatter, Unit Testing
Select 3.x (Preview)
Use class-style component syntax? choose: N
Use Babel alongside TypeScript (required for modern mode, auto-detected polyfills, transpiling JSX)? Choose: Y
ESLinkt Prettier
Lint on save
Mocha Chai
In dedicated config files
Save this as a preset for future projects? choose: N
What is expected?
When running npm run test:unit the example test that is provided out of the box, should pass instantly.
What is actually happening?
The test fails with the following message:
HelloWorld.vue renders props.msg when passed: ReferenceError: SVGElement is not defined at Object.app.mount (dist\js\webpack:\node_modules\@vue\runtime-dom\dist\runtime-dom.esm-bundler.js:1259:1) at mount (dist\js\webpack:\node_modules\@vue\test-utils\dist\vue-test-utils.esm-bundler.js:7891:1) at shallowMount (dist\js\webpack:\node_modules\@vue\test-utils\dist\vue-test-utils.esm-bundler.js:7910:1) at Context.<anonymous> (dist\js\webpack:\tests\unit\example.spec.ts:8:1) at processImmediate (node:internal/timers:462:21)
Have been trying to get vue 3 up and running with a testing framework in a Laravel repo. Had no luck getting it to work. So I started a blank project. Got the same problem.
The text was updated successfully, but these errors were encountered:
Version
4.5.12
Reproduction link
https://github.com/Melvintehu/vuetestapp/tree/master
Environment info
Steps to reproduce
What is expected?
When running
npm run test:unit
the example test that is provided out of the box, should pass instantly.What is actually happening?
The test fails with the following message:
HelloWorld.vue renders props.msg when passed: ReferenceError: SVGElement is not defined at Object.app.mount (dist\js\webpack:\node_modules\@vue\runtime-dom\dist\runtime-dom.esm-bundler.js:1259:1) at mount (dist\js\webpack:\node_modules\@vue\test-utils\dist\vue-test-utils.esm-bundler.js:7891:1) at shallowMount (dist\js\webpack:\node_modules\@vue\test-utils\dist\vue-test-utils.esm-bundler.js:7910:1) at Context.<anonymous> (dist\js\webpack:\tests\unit\example.spec.ts:8:1) at processImmediate (node:internal/timers:462:21)
Have been trying to get vue 3 up and running with a testing framework in a Laravel repo. Had no luck getting it to work. So I started a blank project. Got the same problem.
The text was updated successfully, but these errors were encountered: