switch from Jest to Vitest

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2026-02-16 11:51:07 +01:00
parent c3c1213116
commit fa21647770
56 changed files with 1374 additions and 3361 deletions

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
import {beforeAll, describe, expect, jest, it} from '@jest/globals';
import {beforeAll, describe, expect, vi, it} from 'vitest';
import * as path from 'path';
import {Buildx} from '../../src/buildx/buildx';
@@ -31,7 +31,7 @@ const runTest = process.env.GITHUB_ACTIONS && process.env.GITHUB_ACTIONS === 'tr
const maybeIdToken = runTest && process.env.ACTIONS_ID_TOKEN_REQUEST_URL ? describe : describe.skip;
// needs current GitHub repo info
jest.unmock('@actions/github');
vi.unmock('@actions/github');
beforeAll(async () => {
const cosignInstall = new CosignInstall();

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
import {beforeAll, describe, expect, jest, it, test} from '@jest/globals';
import {beforeAll, describe, expect, vi, it, test} from 'vitest';
import fs from 'fs';
import * as path from 'path';
@@ -34,7 +34,7 @@ const maybe = runTest ? describe : describe.skip;
const maybeIdToken = runTest && process.env.ACTIONS_ID_TOKEN_REQUEST_URL ? describe : describe.skip;
// needs current GitHub repo info
jest.unmock('@actions/github');
vi.unmock('@actions/github');
beforeAll(async () => {
const cosignInstall = new CosignInstall();