test: move itg exclusions to jest

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2024-02-05 09:18:16 +01:00
parent 49a22f7a3e
commit bf4bc3c036
3 changed files with 8 additions and 16 deletions

View File

@@ -23,11 +23,13 @@ import {BakeDefinition} from '../../src/types/bake';
const fixturesDir = path.join(__dirname, '..', 'fixtures');
const maybe = !process.env.GITHUB_ACTIONS || (process.env.GITHUB_ACTIONS === 'true' && process.env.imageOS && process.env.imageOS.startsWith('ubuntu')) ? describe : describe.skip;
beforeEach(() => {
jest.clearAllMocks();
});
describe('parseDefinitions', () => {
maybe('parseDefinitions', () => {
// prettier-ignore
test.each([
[

View File

@@ -19,7 +19,9 @@ import * as fs from 'fs';
import {Install} from '../../src/buildx/install';
describe('download', () => {
const maybe = !process.env.GITHUB_ACTIONS || (process.env.GITHUB_ACTIONS === 'true' && process.env.imageOS && process.env.imageOS.startsWith('ubuntu')) ? describe : describe.skip;
maybe('download', () => {
// prettier-ignore
test.each(['latest'])(
'install docker %s', async (version) => {