【发布时间】:2020-11-28 05:24:13
【问题描述】:
我有一个看起来像这样的组件。我将如何编写一个 vue jest 测试来满足这些条件?
<template>
<div align="center">
<button @click="Tests()">Tests</button>
<button @click="Benchmark()">Benchmark</button>
</div>
</template>
<script>
export default {
name: "HelloWorld",
data() {
return {
result: null,
};
},
props: {
msg: String,
},
};
</script>
【问题讨论】:
标签: unit-testing vue.js jestjs