Skip to content

Commit

Permalink
[TS migration][GIthubutilstest] Updated with typefest
Browse files Browse the repository at this point in the history
  • Loading branch information
ruben-rebelo committed Feb 20, 2024
1 parent a6cf95a commit 4535da7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/unit/GithubUtilsTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* @jest-environment node
*/
import * as core from '@actions/core';
import type {Writable} from 'type-fest';
import GithubUtils from '../../.github/libs/GithubUtils';

const mockGetInput = jest.fn();
Expand Down Expand Up @@ -57,9 +58,7 @@ type ObjectMethodData<T> = {
data: T;
};

type Mutable<T> = {-readonly [P in keyof T]: T[P]};

const asMutable = <T>(value: T): Mutable<T> => value as Mutable<T>;
const asMutable = <T>(value: T): Writable<T> => value as Writable<T>;

beforeAll(() => {
// Mock core module
Expand Down

0 comments on commit 4535da7

Please sign in to comment.