Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 244 Bytes

text.md

File metadata and controls

15 lines (10 loc) · 244 Bytes

text()

Wrapper のテキスト内容を返します。

  • 戻り値: {string}

  • 例:

import { mount } from '@vue/test-utils'
import Foo from './Foo.vue'

const wrapper = mount(Foo)
expect(wrapper.text()).toBe('bar')