-
Notifications
You must be signed in to change notification settings - Fork 666
Open
Labels
Description
Version
1.0.0-beta.22
Reproduction link
https://codesandbox.io/s/xr39rzv50z
Steps to reproduce
Have a child component passing a prop that is an array and generate snapshot
<child-component :myprop="{toto: 'toto', something: true}"/>
What is expected?
<childcomponent-stub
myprop="{toto='toto', something: true}"
/>
What is actually happening?
<childcomponent-stub
myprop="[object Object]"
/>
trollepierre, moizang, rquelen, kfischer-okarin, robokozo and 5 moretrollepierre and vidal7dylanbhughes
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
dcrystalj commentedon Jun 3, 2019
not sure but both tickets (this and linked) are closed, without resolution
TheJaredWilcurt commentedon Feb 19, 2020
@trollepierre @dcrystalj
There is an experimental feature in
jest-serializer-vue-tjw
that will allow for this:You would need to enable the experimental feature in your
vue.config.js
.With that enabled you can easily opt-in or out of the experimental feature on a per-snapshot basis: