fix: 单测的一些注释和配置顺序更改

This commit is contained in:
chenjinsong
2023-01-10 14:08:00 +08:00
parent a608ac72f6
commit dfcc03f11a
4 changed files with 10 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
/**
* jest: https://jestjs.io/docs/getting-started
* vue-jest: https://test-utils.vuejs.org/guide/
* */
import Test from '../src/Test'
import { mount } from '@vue/test-utils'
import { getNameByEventType } from '@/utils/tools'
@@ -24,7 +29,7 @@ describe('单元测试demo', () => {
// 断言点击按钮后文本dom的内容是否是'2'
expect(textNode.text()).toBe('2')
/* 更多断言类型https://jestjs.io/zh-Hans/docs/expect */
/* 更多断言类型https://jestjs.io/docs/expect */
})
test('Vue组件--直接获取vue实例中的data和method', async () => {