Skip to content

Commit

Permalink
test: fix mock warining from ts-jest
Browse files Browse the repository at this point in the history
  • Loading branch information
velut committed Jan 17, 2022
1 parent 7b7b45c commit 23453bb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@
"np": "7.6.0",
"setup-polly-jest": "0.10.0",
"ts-dedent": "2.2.0",
"ts-jest": "27.1.3",
"ts-node": "10.4.0",
"tslib": "2.3.1",
"typescript": "4.5.4"
Expand Down
5 changes: 2 additions & 3 deletions test/package-analyzer/analyze-registry-package.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import NodeHttpAdapter from '@pollyjs/adapter-node-http';
import FSPersister from '@pollyjs/persister-fs';
import * as path from 'path';
import { setupPolly } from 'setup-polly-jest';
import { mocked } from 'ts-jest/utils';
import * as tsm from 'ts-morph';
import { analyzeRegistryPackage } from '../../src';
import { extractPackageAPI } from '../../src/api-extractor/extract-package-api';
Expand All @@ -19,8 +18,8 @@ jest.mock('../../src/api-extractor/extract-package-api', () => ({
extractPackageAPI: jest.fn(),
}));

const mockedTryDownloadPackage = mocked(tryDownloadPackage, true);
const mockedExtractPackageAPI = mocked(extractPackageAPI, true);
const mockedTryDownloadPackage = jest.mocked(tryDownloadPackage, true);
const mockedExtractPackageAPI = jest.mocked(extractPackageAPI, true);

// See https://github.com/gribnoysup/setup-polly-jest/issues/23#issuecomment-890494186
// Polly.register(NodeHttpAdapter);
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10674,7 +10674,7 @@ [email protected]:
resolved "https://registry.yarnpkg.com/ts-dedent/-/ts-dedent-2.2.0.tgz#39e4bd297cd036292ae2394eb3412be63f563bb5"
integrity sha512-q5W7tVM71e2xjHZTlgfTDoPF/SmqKG5hddq9SzR49CH2hayqRKJtQ4mtRlSxKaJlR/+9rEM+mnBHf7I2/BQcpQ==

ts-jest@27.1.3, ts-jest@^27.1.2:
ts-jest@^27.1.2:
version "27.1.3"
resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-27.1.3.tgz#1f723e7e74027c4da92c0ffbd73287e8af2b2957"
integrity sha512-6Nlura7s6uM9BVUAoqLH7JHyMXjz8gluryjpPXxr3IxZdAXnU6FhjvVLHFtfd1vsE1p8zD1OJfskkc0jhTSnkA==
Expand Down

0 comments on commit 23453bb

Please sign in to comment.