I'm an experienced web developer, software engineer, and leader. Welcome to my blog. If you need to reach out you can continue the conversation with a tweet to @geedew. I hope you find what you are looking for here. You can also find me on Github and StackOverflow.

Catching Property Validation in Vue with Jest

I ran into an interesting problem. I encountered a having to test a component that didn’t have a required property set. This then throws an error and it’s not obvious as to how to test this.

1
2
3
4
5
6
7
console.error node_modules/jest-mock/build/index.js:711
[Vue warn]: Missing required prop: "tasks"

found in

---> <Anonymous>
<Root>

/ / / Read More