Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 27 additions & 27 deletions test/browser/specs/runner.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,111 +341,111 @@ test.runIf(provider.name === 'playwright')('timeout hooks', async ({ onTestFaile
expect(snapshot).toMatchInlineSnapshot(`
" FAIL |chromium| hooks-timeout.test.ts > timeouts are failing correctly > afterAll
TimeoutError: locator.click: Timeout <ms> exceeded.
❯ hooks-timeout.test.ts:44:45
❯ hooks-timeout.test.ts:39:45

FAIL |chromium| hooks-timeout.test.ts > timeouts are failing correctly > afterEach > skipped
TimeoutError: locator.click: Timeout <ms> exceeded.
❯ hooks-timeout.test.ts:26:45
❯ hooks-timeout.test.ts:23:45

FAIL |chromium| hooks-timeout.test.ts > timeouts are failing correctly > beforeAll
TimeoutError: locator.click: Timeout <ms> exceeded.
❯ hooks-timeout.test.ts:35:45
❯ hooks-timeout.test.ts:31:45

FAIL |chromium| hooks-timeout.test.ts > timeouts are failing correctly > beforeEach > skipped
TimeoutError: locator.click: Timeout <ms> exceeded.
❯ hooks-timeout.test.ts:17:45
❯ hooks-timeout.test.ts:15:45

FAIL |chromium| hooks-timeout.test.ts > timeouts are failing correctly > click on non-existing element fails
TimeoutError: locator.click: Timeout <ms> exceeded.
❯ hooks-timeout.test.ts:7:33
❯ hooks-timeout.test.ts:6:33

FAIL |chromium| hooks-timeout.test.ts > timeouts are failing correctly > onTestFailed > fails
TimeoutError: locator.click: Timeout <ms> exceeded.
❯ hooks-timeout.test.ts:70:47
❯ hooks-timeout.test.ts:62:47

FAIL |chromium| hooks-timeout.test.ts > timeouts are failing correctly > onTestFailed > fails global
TimeoutError: locator.click: Timeout <ms> exceeded.
❯ hooks-timeout.test.ts:79:47
❯ hooks-timeout.test.ts:70:47

FAIL |chromium| hooks-timeout.test.ts > timeouts are failing correctly > onTestFinished > fails
TimeoutError: locator.click: Timeout <ms> exceeded.
❯ hooks-timeout.test.ts:54:47
❯ hooks-timeout.test.ts:48:47

FAIL |chromium| hooks-timeout.test.ts > timeouts are failing correctly > onTestFinished > fails global
TimeoutError: locator.click: Timeout <ms> exceeded.
❯ hooks-timeout.test.ts:61:47
❯ hooks-timeout.test.ts:54:47

FAIL |firefox| hooks-timeout.test.ts > timeouts are failing correctly > afterAll
TimeoutError: locator.click: Timeout <ms> exceeded.
❯ hooks-timeout.test.ts:44:45
❯ hooks-timeout.test.ts:39:45

FAIL |firefox| hooks-timeout.test.ts > timeouts are failing correctly > afterEach > skipped
TimeoutError: locator.click: Timeout <ms> exceeded.
❯ hooks-timeout.test.ts:26:45
❯ hooks-timeout.test.ts:23:45

FAIL |firefox| hooks-timeout.test.ts > timeouts are failing correctly > beforeAll
TimeoutError: locator.click: Timeout <ms> exceeded.
❯ hooks-timeout.test.ts:35:45
❯ hooks-timeout.test.ts:31:45

FAIL |firefox| hooks-timeout.test.ts > timeouts are failing correctly > beforeEach > skipped
TimeoutError: locator.click: Timeout <ms> exceeded.
❯ hooks-timeout.test.ts:17:45
❯ hooks-timeout.test.ts:15:45

FAIL |firefox| hooks-timeout.test.ts > timeouts are failing correctly > click on non-existing element fails
TimeoutError: locator.click: Timeout <ms> exceeded.
❯ hooks-timeout.test.ts:7:33
❯ hooks-timeout.test.ts:6:33

FAIL |firefox| hooks-timeout.test.ts > timeouts are failing correctly > onTestFailed > fails
TimeoutError: locator.click: Timeout <ms> exceeded.
❯ hooks-timeout.test.ts:70:47
❯ hooks-timeout.test.ts:62:47

FAIL |firefox| hooks-timeout.test.ts > timeouts are failing correctly > onTestFailed > fails global
TimeoutError: locator.click: Timeout <ms> exceeded.
❯ hooks-timeout.test.ts:79:47
❯ hooks-timeout.test.ts:70:47

FAIL |firefox| hooks-timeout.test.ts > timeouts are failing correctly > onTestFinished > fails
TimeoutError: locator.click: Timeout <ms> exceeded.
❯ hooks-timeout.test.ts:54:47
❯ hooks-timeout.test.ts:48:47

FAIL |firefox| hooks-timeout.test.ts > timeouts are failing correctly > onTestFinished > fails global
TimeoutError: locator.click: Timeout <ms> exceeded.
❯ hooks-timeout.test.ts:61:47
❯ hooks-timeout.test.ts:54:47

FAIL |webkit| hooks-timeout.test.ts > timeouts are failing correctly > afterAll
TimeoutError: locator.click: Timeout <ms> exceeded.
❯ hooks-timeout.test.ts:44:45
❯ hooks-timeout.test.ts:39:45

FAIL |webkit| hooks-timeout.test.ts > timeouts are failing correctly > afterEach > skipped
TimeoutError: locator.click: Timeout <ms> exceeded.
❯ hooks-timeout.test.ts:26:45
❯ hooks-timeout.test.ts:23:45

FAIL |webkit| hooks-timeout.test.ts > timeouts are failing correctly > beforeAll
TimeoutError: locator.click: Timeout <ms> exceeded.
❯ hooks-timeout.test.ts:35:45
❯ hooks-timeout.test.ts:31:45

FAIL |webkit| hooks-timeout.test.ts > timeouts are failing correctly > beforeEach > skipped
TimeoutError: locator.click: Timeout <ms> exceeded.
❯ hooks-timeout.test.ts:17:45
❯ hooks-timeout.test.ts:15:45

FAIL |webkit| hooks-timeout.test.ts > timeouts are failing correctly > click on non-existing element fails
TimeoutError: locator.click: Timeout <ms> exceeded.
❯ hooks-timeout.test.ts:7:33
❯ hooks-timeout.test.ts:6:33

FAIL |webkit| hooks-timeout.test.ts > timeouts are failing correctly > onTestFailed > fails
TimeoutError: locator.click: Timeout <ms> exceeded.
❯ hooks-timeout.test.ts:70:47
❯ hooks-timeout.test.ts:62:47

FAIL |webkit| hooks-timeout.test.ts > timeouts are failing correctly > onTestFailed > fails global
TimeoutError: locator.click: Timeout <ms> exceeded.
❯ hooks-timeout.test.ts:79:47
❯ hooks-timeout.test.ts:70:47

FAIL |webkit| hooks-timeout.test.ts > timeouts are failing correctly > onTestFinished > fails
TimeoutError: locator.click: Timeout <ms> exceeded.
❯ hooks-timeout.test.ts:54:47
❯ hooks-timeout.test.ts:48:47

FAIL |webkit| hooks-timeout.test.ts > timeouts are failing correctly > onTestFinished > fails global
TimeoutError: locator.click: Timeout <ms> exceeded.
❯ hooks-timeout.test.ts:61:47"
❯ hooks-timeout.test.ts:54:47"
`)
}
else {
Expand Down
8 changes: 6 additions & 2 deletions test/core/test/cli-test.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { resolveConfig as viteResolveConfig } from 'vite'
import { expect, test } from 'vitest'
import { ReportersMap } from 'vitest/node'
import { ReportersMap, rolldownVersion } from 'vitest/node'
import { createCLI, parseCLI } from '../../../packages/vitest/src/node/cli/cac.js'
import { resolveConfig } from '../../../packages/vitest/src/node/config/resolveConfig.js'

Expand Down Expand Up @@ -275,7 +275,11 @@ test('browser by name', () => {
expect(options).toEqual({ browser: { name: 'firefox' } })
})

test('clearScreen', async () => {
test('clearScreen', async (ctx) => {
// skip vm since rolldown native modules break due to RegExp instance
// https://github.com/vitest-dev/vitest/issues/8754#issuecomment-3727583957
ctx.skip(!!rolldownVersion && ctx.task.file.projectName === 'vmThreads')

const examples = [
// vitest cli | vite clearScreen
['--clearScreen', undefined],
Expand Down
Loading