0👍
The right way is this:
expect(typeof wrapper.vm.fetchedData).toBe('object')
You can use vm (a shorthand for ViewModel) to access props, data or computed props.
Source:stackexchange.com
0👍
The right way is this:
expect(typeof wrapper.vm.fetchedData).toBe('object')
You can use vm (a shorthand for ViewModel) to access props, data or computed props.