Skip to content

Commit 90ca5b2

Browse files
hi-ogawaclaude
andauthored
test: skip test with rolldown inside vmThreads + update snapshot (#9415)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 90c302f commit 90ca5b2

2 files changed

Lines changed: 33 additions & 29 deletions

File tree

test/browser/specs/runner.test.ts

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -341,111 +341,111 @@ test.runIf(provider.name === 'playwright')('timeout hooks', async ({ onTestFaile
341341
expect(snapshot).toMatchInlineSnapshot(`
342342
" FAIL |chromium| hooks-timeout.test.ts > timeouts are failing correctly > afterAll
343343
TimeoutError: locator.click: Timeout <ms> exceeded.
344-
❯ hooks-timeout.test.ts:44:45
344+
❯ hooks-timeout.test.ts:39:45
345345
346346
FAIL |chromium| hooks-timeout.test.ts > timeouts are failing correctly > afterEach > skipped
347347
TimeoutError: locator.click: Timeout <ms> exceeded.
348-
❯ hooks-timeout.test.ts:26:45
348+
❯ hooks-timeout.test.ts:23:45
349349
350350
FAIL |chromium| hooks-timeout.test.ts > timeouts are failing correctly > beforeAll
351351
TimeoutError: locator.click: Timeout <ms> exceeded.
352-
❯ hooks-timeout.test.ts:35:45
352+
❯ hooks-timeout.test.ts:31:45
353353
354354
FAIL |chromium| hooks-timeout.test.ts > timeouts are failing correctly > beforeEach > skipped
355355
TimeoutError: locator.click: Timeout <ms> exceeded.
356-
❯ hooks-timeout.test.ts:17:45
356+
❯ hooks-timeout.test.ts:15:45
357357
358358
FAIL |chromium| hooks-timeout.test.ts > timeouts are failing correctly > click on non-existing element fails
359359
TimeoutError: locator.click: Timeout <ms> exceeded.
360-
❯ hooks-timeout.test.ts:7:33
360+
❯ hooks-timeout.test.ts:6:33
361361
362362
FAIL |chromium| hooks-timeout.test.ts > timeouts are failing correctly > onTestFailed > fails
363363
TimeoutError: locator.click: Timeout <ms> exceeded.
364-
❯ hooks-timeout.test.ts:70:47
364+
❯ hooks-timeout.test.ts:62:47
365365
366366
FAIL |chromium| hooks-timeout.test.ts > timeouts are failing correctly > onTestFailed > fails global
367367
TimeoutError: locator.click: Timeout <ms> exceeded.
368-
❯ hooks-timeout.test.ts:79:47
368+
❯ hooks-timeout.test.ts:70:47
369369
370370
FAIL |chromium| hooks-timeout.test.ts > timeouts are failing correctly > onTestFinished > fails
371371
TimeoutError: locator.click: Timeout <ms> exceeded.
372-
❯ hooks-timeout.test.ts:54:47
372+
❯ hooks-timeout.test.ts:48:47
373373
374374
FAIL |chromium| hooks-timeout.test.ts > timeouts are failing correctly > onTestFinished > fails global
375375
TimeoutError: locator.click: Timeout <ms> exceeded.
376-
❯ hooks-timeout.test.ts:61:47
376+
❯ hooks-timeout.test.ts:54:47
377377
378378
FAIL |firefox| hooks-timeout.test.ts > timeouts are failing correctly > afterAll
379379
TimeoutError: locator.click: Timeout <ms> exceeded.
380-
❯ hooks-timeout.test.ts:44:45
380+
❯ hooks-timeout.test.ts:39:45
381381
382382
FAIL |firefox| hooks-timeout.test.ts > timeouts are failing correctly > afterEach > skipped
383383
TimeoutError: locator.click: Timeout <ms> exceeded.
384-
❯ hooks-timeout.test.ts:26:45
384+
❯ hooks-timeout.test.ts:23:45
385385
386386
FAIL |firefox| hooks-timeout.test.ts > timeouts are failing correctly > beforeAll
387387
TimeoutError: locator.click: Timeout <ms> exceeded.
388-
❯ hooks-timeout.test.ts:35:45
388+
❯ hooks-timeout.test.ts:31:45
389389
390390
FAIL |firefox| hooks-timeout.test.ts > timeouts are failing correctly > beforeEach > skipped
391391
TimeoutError: locator.click: Timeout <ms> exceeded.
392-
❯ hooks-timeout.test.ts:17:45
392+
❯ hooks-timeout.test.ts:15:45
393393
394394
FAIL |firefox| hooks-timeout.test.ts > timeouts are failing correctly > click on non-existing element fails
395395
TimeoutError: locator.click: Timeout <ms> exceeded.
396-
❯ hooks-timeout.test.ts:7:33
396+
❯ hooks-timeout.test.ts:6:33
397397
398398
FAIL |firefox| hooks-timeout.test.ts > timeouts are failing correctly > onTestFailed > fails
399399
TimeoutError: locator.click: Timeout <ms> exceeded.
400-
❯ hooks-timeout.test.ts:70:47
400+
❯ hooks-timeout.test.ts:62:47
401401
402402
FAIL |firefox| hooks-timeout.test.ts > timeouts are failing correctly > onTestFailed > fails global
403403
TimeoutError: locator.click: Timeout <ms> exceeded.
404-
❯ hooks-timeout.test.ts:79:47
404+
❯ hooks-timeout.test.ts:70:47
405405
406406
FAIL |firefox| hooks-timeout.test.ts > timeouts are failing correctly > onTestFinished > fails
407407
TimeoutError: locator.click: Timeout <ms> exceeded.
408-
❯ hooks-timeout.test.ts:54:47
408+
❯ hooks-timeout.test.ts:48:47
409409
410410
FAIL |firefox| hooks-timeout.test.ts > timeouts are failing correctly > onTestFinished > fails global
411411
TimeoutError: locator.click: Timeout <ms> exceeded.
412-
❯ hooks-timeout.test.ts:61:47
412+
❯ hooks-timeout.test.ts:54:47
413413
414414
FAIL |webkit| hooks-timeout.test.ts > timeouts are failing correctly > afterAll
415415
TimeoutError: locator.click: Timeout <ms> exceeded.
416-
❯ hooks-timeout.test.ts:44:45
416+
❯ hooks-timeout.test.ts:39:45
417417
418418
FAIL |webkit| hooks-timeout.test.ts > timeouts are failing correctly > afterEach > skipped
419419
TimeoutError: locator.click: Timeout <ms> exceeded.
420-
❯ hooks-timeout.test.ts:26:45
420+
❯ hooks-timeout.test.ts:23:45
421421
422422
FAIL |webkit| hooks-timeout.test.ts > timeouts are failing correctly > beforeAll
423423
TimeoutError: locator.click: Timeout <ms> exceeded.
424-
❯ hooks-timeout.test.ts:35:45
424+
❯ hooks-timeout.test.ts:31:45
425425
426426
FAIL |webkit| hooks-timeout.test.ts > timeouts are failing correctly > beforeEach > skipped
427427
TimeoutError: locator.click: Timeout <ms> exceeded.
428-
❯ hooks-timeout.test.ts:17:45
428+
❯ hooks-timeout.test.ts:15:45
429429
430430
FAIL |webkit| hooks-timeout.test.ts > timeouts are failing correctly > click on non-existing element fails
431431
TimeoutError: locator.click: Timeout <ms> exceeded.
432-
❯ hooks-timeout.test.ts:7:33
432+
❯ hooks-timeout.test.ts:6:33
433433
434434
FAIL |webkit| hooks-timeout.test.ts > timeouts are failing correctly > onTestFailed > fails
435435
TimeoutError: locator.click: Timeout <ms> exceeded.
436-
❯ hooks-timeout.test.ts:70:47
436+
❯ hooks-timeout.test.ts:62:47
437437
438438
FAIL |webkit| hooks-timeout.test.ts > timeouts are failing correctly > onTestFailed > fails global
439439
TimeoutError: locator.click: Timeout <ms> exceeded.
440-
❯ hooks-timeout.test.ts:79:47
440+
❯ hooks-timeout.test.ts:70:47
441441
442442
FAIL |webkit| hooks-timeout.test.ts > timeouts are failing correctly > onTestFinished > fails
443443
TimeoutError: locator.click: Timeout <ms> exceeded.
444-
❯ hooks-timeout.test.ts:54:47
444+
❯ hooks-timeout.test.ts:48:47
445445
446446
FAIL |webkit| hooks-timeout.test.ts > timeouts are failing correctly > onTestFinished > fails global
447447
TimeoutError: locator.click: Timeout <ms> exceeded.
448-
❯ hooks-timeout.test.ts:61:47"
448+
❯ hooks-timeout.test.ts:54:47"
449449
`)
450450
}
451451
else {

test/core/test/cli-test.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { resolveConfig as viteResolveConfig } from 'vite'
22
import { expect, test } from 'vitest'
3-
import { ReportersMap } from 'vitest/node'
3+
import { ReportersMap, rolldownVersion } from 'vitest/node'
44
import { createCLI, parseCLI } from '../../../packages/vitest/src/node/cli/cac.js'
55
import { resolveConfig } from '../../../packages/vitest/src/node/config/resolveConfig.js'
66

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

278-
test('clearScreen', async () => {
278+
test('clearScreen', async (ctx) => {
279+
// skip vm since rolldown native modules break due to RegExp instance
280+
// https://github.com/vitest-dev/vitest/issues/8754#issuecomment-3727583957
281+
ctx.skip(!!rolldownVersion && ctx.task.file.projectName === 'vmThreads')
282+
279283
const examples = [
280284
// vitest cli | vite clearScreen
281285
['--clearScreen', undefined],

0 commit comments

Comments
 (0)