Closed
Description
Version
1.0.0-beta.12
Reproduction link
https://github.com/ilyaztsv/jest-and-vue-test-utils-stubs
Steps to reproduce
npm i
npm run test
What is expected?
tests should end successfully and terminal console should contain html
of rendered MyComponent
:
./component.spec.js
MyComponent
✓ should create (15ms)
✓ snapshot (27ms)
console.log component.spec.js:27
<div class="component"><child-component></child-component></div>
Test Suites: 1 passed, 1 total
Tests: 2 passed, 2 total
Snapshots: 0 total
Time: 2.423s
What is actually happening?
MyComponent
✓ should create (12ms)
✕ snapshot (27ms)
● MyComponent › snapshot
RangeError: Maximum call stack size exceeded
at VueComponent.Vue._render (node_modules/vue/dist/vue.runtime.common.js:4540:7)
Test Suites: 1 failed, 1 total
Tests: 1 failed, 1 passed, 2 total
Snapshots: 0 total
Time: 2.172s
Metadata
Metadata
Assignees
Labels
No labels