Skip to content

Commit

Permalink
Merge pull request #285 from jo-sm/jest-mock-warning
Browse files Browse the repository at this point in the history
Fix `mocked` warning from `ts-jest`
  • Loading branch information
jo-sm committed Jan 25, 2022
2 parents c2ac54d + ec26389 commit 4c9f8c8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -25,10 +25,10 @@
"eslint": "^8.1.0",
"eslint_d": "^11.0.0",
"eslint-plugin-jest": "^26.0.0",
"jest": "^27.3.1",
"jest": "^27.4.7",
"prettier": "^2.2.1",
"stylelint-config-recommended": "^6.0.0",
"ts-jest": "^27.0.7",
"ts-jest": "^27.1.3",
"typescript": "^4.1.3"
},
"repository": {
Expand Down
4 changes: 1 addition & 3 deletions src/client.spec.ts
@@ -1,5 +1,3 @@
import { mocked } from "ts-jest/utils";

import { Command } from "./types";
import { version as packageVersion } from "../package.json";
import * as _utils from "./utils";
Expand All @@ -14,7 +12,7 @@ jest.mock("./utils", () => ({
daemonRunning: jest.fn(),
}));

const utils = mocked(_utils);
const utils = jest.mocked(_utils);
const MockedSocket = Socket as jest.MockedClass<typeof Socket>;

describe("client", () => {
Expand Down

0 comments on commit 4c9f8c8

Please sign in to comment.