···1313## cli
14141515If you are testing a complex interaction, place your tests here.
1616+Type-focused fixtures live under `test/cli/dts/`.
16171718## browser
1819
-3
test/dts-config/happy-dom-patch.ts
···11-// happy-dom's dts will break `skipLibCheck: false`.
22-// for now, override happy-dom type for the sake of testing other packages.
33-export const Window = {} as any
···11-import { test } from 'vitest'
22-33-export const myTest = test.extend<{ now: number }>({
44- now: async ({}, use) => {
55- await use(Date.now())
66- },
77-})
-7
test/dts-playwright/src/basic.test.ts
···11-import { test } from 'vitest'
22-import { page, userEvent } from 'vitest/browser'
33-44-test('basic', async () => {
55- document.body.innerHTML = `<button>hello</button>`
66- await userEvent.click(page.getByRole('button'), { force: true })
77-})
+3
test/cli/dts/_shared/happy-dom-patch.ts
···11+// happy-dom's dts will break `skipLibCheck: false`.
22+// for now, override happy-dom type for the sake of testing other packages.
33+export const Window = {} as any