10 lines
492 B
JavaScript
10 lines
492 B
JavaScript
import { execFileSync } from 'node:child_process'
|
|
import { fileURLToPath } from 'node:url'
|
|
import { expect, test } from 'vitest'
|
|
|
|
test('Windows packaged-update helper contracts run in the ordinary JS lane', () => {
|
|
const suite = fileURLToPath(new URL('../tests/install/e2e-assets/windows-bundled-helpers.test.mjs', import.meta.url))
|
|
const output = execFileSync(process.execPath, ['--test', suite], { encoding: 'utf8', timeout: 30_000 })
|
|
expect(output).toMatch(/(?:fail 0|# fail 0)/)
|
|
})
|