Images are stubbed as Objects instead of Strings
See original GitHub issueWhen importing an image, the import returns an empty Object
instead of a an empty String
.
This causes issues with prop type validation / type checking.
I don’t understand how it’s happening as all the index.js
of this package does is return ''
, but in a normal Vue CLI 3 setup with jest enabled, the prop type for images is object
.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
What's the difference between faking, mocking, and stubbing?
Fakes, stubs, and mocks all belong to the category of test doubles. A test double is any object or system you use in...
Read more >Stubs and Mocking
The Lowly Stub ... Replacing the Name and Address classes by simple strings. ... The (main) mock graphics object is created here.
Read more >Stubbing and Mocking in Java with the Spock Testing ...
Learn how to create true Java unit tests by mocking all external dependencies in your unit tests with the Spock testing framework.
Read more >How to use Stub API in the following scenario?
StubProvider { public static List<User> userList; public Object handleMethodCall(Object stubbedObject, String stubbedMethodName, ...
Read more >Stubbing, Mocking and Service Virtualization Differences for ...
dummy object (a string “Mike”); stub (a StubUserRepository class ... one of the service virtualization platforms instead of building the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
2.0.0 now stubs as an empty string by default 👍
You could pass it in as a prop in the test: