// Import the necessary modules
import { mount } from '@vue/test-utils';
// Define the component to be tested
const MyComponent = {
template: '<div><span id="mySpan">Hello, Vue!</span></div>',
};
// Mount the component
const wrapper = mount(MyComponent);
// Find the span element by its ID
const spanElement = wrapper.find('#mySpan');
// Get the text content of the span element
const spanText = spanElement.text();
// Assert or perform further actions based on the obtained text
expect(spanText).toBe('Hello, Vue!');