mirror of
https://code.forgejo.org/docker/actions-toolkit.git
synced 2025-07-02 02:25:36 -04:00
test: clear mocks
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
251b9d49f3
commit
66653922b3
7 changed files with 35 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
|||
import {afterEach, describe, expect, it, jest, test} from '@jest/globals';
|
||||
import {afterEach, beforeEach, describe, expect, it, jest, test} from '@jest/globals';
|
||||
import * as fs from 'fs';
|
||||
import * as path from 'path';
|
||||
import * as semver from 'semver';
|
||||
|
@ -21,6 +21,10 @@ jest.spyOn(BuildKit.prototype as any, 'tmpName').mockImplementation((): string =
|
|||
return tmpName;
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
jest.clearAllMocks();
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
rimraf.sync(tmpDir);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue