mirror of
https://github.com/docker/setup-compose-action.git
synced 2026-04-06 22:29:24 +00:00
switch from jest to vitest
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
parent
e79596b1b4
commit
e2b402d143
9 changed files with 1137 additions and 3197 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-actions-toolkit-'));
|
||||
|
||||
process.env = Object.assign({}, process.env, {
|
||||
TEMP: tmpDir,
|
||||
GITHUB_REPOSITORY: 'docker/setup-compose-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