mirror of
https://github.com/hanzoai/vitest.git
synced 2026-10-30 14:46:34 +00:00
15 lines
506 B
TypeScript
15 lines
506 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
|
|
describe('exec-args', async () => {
|
|
it('should have the correct flags', () => {
|
|
// flags that should go through
|
|
expect(process.execArgv).toContain('--heap-prof')
|
|
expect(process.execArgv).toContain('--heap-prof-name=heap.prof')
|
|
expect(process.execArgv).toContain('--diagnostic-dir=/tmp/vitest-diagnostics')
|
|
|
|
// added via vitest
|
|
expect(process.execArgv).toContain('--conditions')
|
|
expect(process.execArgv).toContain('node')
|
|
})
|
|
})
|