import '@testing-library/jest-dom'; import $, {VeamsQueryObject} from '../src'; test('eq() - insert element before (HTML String)', () => { document.body.innerHTML = `

text content 2

text content 2
text content 3
`; const $targetEls: VeamsQueryObject = $('.target-el'); expect($targetEls.eq(0)[0]).toHaveAttribute('id', 'target-el'); expect($targetEls.eq(1)[0]).toHaveAttribute('id', 'target-el-2'); expect($targetEls.eq(2)[0]).toHaveAttribute('id', 'target-el-3'); });