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