mirror of
https://github.com/docker/login-action.git
synced 2026-03-19 20:20:27 +08:00
switch from jest to vitest
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
parent
c859298dc3
commit
6585fe535d
11 changed files with 1028 additions and 3226 deletions
12
__tests__/setup.unit.ts
Normal file
12
__tests__/setup.unit.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import fs from 'node:fs';
|
||||
import os from 'node:os';
|
||||
import path from 'node:path';
|
||||
|
||||
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'docker-login-action-'));
|
||||
|
||||
process.env = Object.assign({}, process.env, {
|
||||
TEMP: tmpDir,
|
||||
GITHUB_REPOSITORY: 'docker/login-action',
|
||||
RUNNER_TEMP: path.join(tmpDir, 'runner-temp'),
|
||||
RUNNER_TOOL_CACHE: path.join(tmpDir, 'runner-tool-cache')
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue