switch from jest to vitest

This commit is contained in:
CrazyMax
2026-03-02 22:08:14 +01:00
parent 7054f155b5
commit 431a9f4c97
11 changed files with 988 additions and 3253 deletions

11
vitest.setup.ts Normal file
View File

@@ -0,0 +1,11 @@
import * as fs from 'node:fs';
import * as os from 'node:os';
import * as path from 'node:path';
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'ghaction-upx-'));
process.env = Object.assign({}, process.env, {
TEMP: tmpDir,
RUNNER_TEMP: path.join(tmpDir, 'runner-temp'),
RUNNER_TOOL_CACHE: path.join(tmpDir, 'runner-tool-cache')
});