Examples · Testing Library


PHOTO EMBED

Mon Oct 19 2020 08:02:06 GMT+0000 (UTC)

Saved by @sharmanilay #vue.js

<template>
  <div>
    <p>Hi, my name is {{ user }}</p>

    <label for="username">Username:</label>
    <input v-model="user" id="username" name="username" />
  </div>
</template>

<script>
  export default {
    data: () => ({
      user: 'Alice',
    }),
  }
</script>
content_copyCOPY

https://testing-library.com/docs/vue-testing-library/examples