jest expect with custom message

jest expect with custom message

Next to making sure that your code works now, it's also important to make sure that developers are able to fix defects in the future.The first step to achieving this is to write tests. I'll be using single-file components here, and I haven't checked whether splitting them into their own HTML, CSS, or js files works or not, so let's assume you're doing that as well.. First, create a MessageList.vue component under src/components: