MCPcopy
hub / github.com/vitest-dev/vitest / mount

Function mount

test/browser/fixtures/expect-dom/toHaveDisplayValue.test.ts:30–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28
29describe('with multiple select', () => {
30 function mount() {
31 return render(`
32 <select id="fruits" data-testid="select" multiple>
33 <option value="">Select a fruit...</option>
34 <option value="ananas" selected>Ananas</option>
35 <option value="banana">Banana</option>
36 <option value="avocado" selected>Avocado</option>
37 </select>
38 `)
39 }
40
41 it('matches only when all the multiple selected values are equal to all the expected values', () => {
42 const subject = mount()

Callers 1

Calls 1

renderFunction · 0.90

Tested by

no test coverage detected