From 20c7ac77bdeb62514b2957a8f7dac6103fbdffca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20D=C4=9Bdi=C4=8D?= Date: Tue, 7 Dec 2021 11:57:09 +0100 Subject: [PATCH] Using the mocked method from jest instead of ts-jest --- packages/collector/__tests__/getGlobalConfig.test.ts | 2 +- packages/collector/__tests__/getProjectListing.test.ts | 2 +- packages/collector/__tests__/run.test.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/collector/__tests__/getGlobalConfig.test.ts b/packages/collector/__tests__/getGlobalConfig.test.ts index 692b6389f..e8850c669 100644 --- a/packages/collector/__tests__/getGlobalConfig.test.ts +++ b/packages/collector/__tests__/getGlobalConfig.test.ts @@ -1,5 +1,5 @@ import * as fs from "fs"; -import { mocked } from "ts-jest/utils"; +import { mocked } from "jest-mock"; import { getGlobalConfig } from "../src/getGlobalConfig"; diff --git a/packages/collector/__tests__/getProjectListing.test.ts b/packages/collector/__tests__/getProjectListing.test.ts index 27ca00397..fbc67540d 100644 --- a/packages/collector/__tests__/getProjectListing.test.ts +++ b/packages/collector/__tests__/getProjectListing.test.ts @@ -1,4 +1,4 @@ -import { mocked } from "ts-jest/utils"; +import { mocked } from "jest-mock"; import { getProjectInfo } from "../src/getProjectInfo"; import { getProjectIssues } from "../src/getProjectIssues"; diff --git a/packages/collector/__tests__/run.test.ts b/packages/collector/__tests__/run.test.ts index 9643ee36e..7e50436b5 100644 --- a/packages/collector/__tests__/run.test.ts +++ b/packages/collector/__tests__/run.test.ts @@ -1,6 +1,6 @@ import * as fs from "fs"; import * as core from "@actions/core"; -import { mocked } from "ts-jest/utils"; +import { mocked } from "jest-mock"; import { getGlobalConfig } from "../src/getGlobalConfig"; import { getProjectListing } from "../src/getProjectListing";