vue test utils hastext code example Example: get text inside span vue test utils let span = wrapper.find('span'); expect(span.text()).toBe('test');