Skip to content

Commit ed60e40

Browse files
authoredMay 6, 2024··
feat!: remove --segfault-retry (#5514)
1 parent dbbbe43 commit ed60e40

File tree

5 files changed

+2
-161
lines changed

5 files changed

+2
-161
lines changed
 

‎.github/workflows/ci.yml

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ concurrency:
1414
cancel-in-progress: true
1515

1616
env:
17-
VITEST_SEGFAULT_RETRY: 3
1817
PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/.cache/ms-playwright
1918
CYPRESS_CACHE_FOLDER: ${{ github.workspace }}/.cache/Cypress
2019

‎packages/vitest/rollup.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ const entries = {
1919
'path': 'src/paths.ts',
2020
'index': 'src/index.ts',
2121
'cli': 'src/node/cli.ts',
22-
'cli-wrapper': 'src/node/cli/cli-wrapper.ts',
2322
'node': 'src/node.ts',
2423
'suite': 'src/suite.ts',
2524
'browser': 'src/browser.ts',

‎packages/vitest/src/node/cli/cli-wrapper.ts

-147
This file was deleted.

‎packages/vitest/vitest.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env node
2-
import './dist/cli-wrapper.js'
2+
import './dist/cli.js'

‎test/config/test/exec-args.test.ts

+1-11
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
1-
import { afterAll, beforeAll, expect, test } from 'vitest'
1+
import { expect, test } from 'vitest'
22
import { execa } from 'execa'
33
import { runVitest } from '../../test-utils'
44

5-
// VITEST_SEGFAULT_RETRY messes with the node flags, as can be seen in packages/vitest/src/node/cli-wrapper.ts
6-
// so here we remove it to make sure the tests are not affected by it
7-
const ORIGIN_VITEST_SEGFAULT_RETRY = process.env.VITEST_SEGFAULT_RETRY
8-
beforeAll(() => {
9-
delete process.env.VITEST_SEGFAULT_RETRY
10-
})
11-
afterAll(() => {
12-
process.env.VITEST_SEGFAULT_RETRY = ORIGIN_VITEST_SEGFAULT_RETRY
13-
})
14-
155
test.each([
166
{ pool: 'forks', execArgv: ['--hash-seed=1', '--random-seed=1', '--no-opt'] },
177
{ pool: 'threads', execArgv: ['--inspect-brk'] },

0 commit comments

Comments
 (0)
Please sign in to comment.