Skip to content

Commit

Permalink
doc: mention mock with script setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jrutila committed Jul 3, 2023
1 parent 409efe2 commit e6d0241
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,15 @@ export default {
}
}
</script>
// Or if you are using script setup
<script setup>
function onClick() {
$store.dispatch('click')
}
</script>
```

`Component.spec.js`:
Expand Down

0 comments on commit e6d0241

Please sign in to comment.