api
docs
env
git
hbs
html
husky
jest
lintstaged
lisp
node
prettier
python
react
readme
schema
style
util
web
$ tmpl vue component [name]
Create a vue component.
Files
project
└─src
└──components
└───foo
└────__tests__
└─────.test.ts
└────.vue
↑ .test.ts
import { shallowMount } from '@vue/test-utils'import from '../.vue'describe(" component", () => {describe("render", () => {it("should render without error", () => {// Arrangeconst wrapper = shallowMount()// Actconst element = wrapper.element.firstChild// Assertexpect(element).not.toBeNull();})})})
↑ .vue
<template><div></div></template><script lang="ts">export default {name: ""};</script><style scoped></style>