diff --git a/package.json b/package.json index 4ecd9f19..263e0e68 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "@rollup/plugin-node-resolve": "^9.0.0", "@rollup/plugin-replace": "^2.2.1", "@types/hash-sum": "^1.0.0", - "@types/jest": "^26.0.0", + "@types/jest": "^26.0.16", "@types/node": "^14.10.1", "@types/puppeteer": "^2.0.0", "@typescript-eslint/parser": "^4.1.1", diff --git a/packages/runtime-core/__tests__/rendererComponent.spec.ts b/packages/runtime-core/__tests__/rendererComponent.spec.ts index 29a7d076..4c45b90a 100644 --- a/packages/runtime-core/__tests__/rendererComponent.spec.ts +++ b/packages/runtime-core/__tests__/rendererComponent.spec.ts @@ -142,7 +142,7 @@ describe('renderer: component', () => { // #2170 test('instance.$el should be exposed to watch options', async () => { - function returnThis(this: any) { + function returnThis(this: any, _arg: any) { return this } const propWatchSpy = jest.fn(returnThis) diff --git a/packages/runtime-core/__tests__/vnode.spec.ts b/packages/runtime-core/__tests__/vnode.spec.ts index 5bfde8e5..56f1e7b4 100644 --- a/packages/runtime-core/__tests__/vnode.spec.ts +++ b/packages/runtime-core/__tests__/vnode.spec.ts @@ -515,7 +515,7 @@ describe('vnode', () => { // slot content (called during the block node creation) to be missed test('element block should track normalized slot children', () => { const hoist = createVNode('div') - let vnode1 + let vnode1: any const vnode = (openBlock(), createBlock('div', null, { default: () => { diff --git a/yarn.lock b/yarn.lock index 471763f8..de7f4c4e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -869,7 +869,7 @@ dependencies: "@types/istanbul-lib-report" "*" -"@types/jest@26.x", "@types/jest@^26.0.0": +"@types/jest@26.x": version "26.0.15" resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.15.tgz#12e02c0372ad0548e07b9f4e19132b834cb1effe" integrity sha512-s2VMReFXRg9XXxV+CW9e5Nz8fH2K1aEhwgjUqPPbQd7g95T0laAcvLv032EhFHIa5GHsZ8W7iJEQVaJq6k3Gog== @@ -877,6 +877,14 @@ jest-diff "^26.0.0" pretty-format "^26.0.0" +"@types/jest@^26.0.16": + version "26.0.16" + resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.16.tgz#b47abd50f6ed0503f589db8e126fc8eb470cf87c" + integrity sha512-Gp12+7tmKCgv9JjtltxUXokohCAEZfpJaEW5tn871SGRp8I+bRWBonQO7vW5NHwnAHe5dd50+Q4zyKuN35i09g== + dependencies: + jest-diff "^26.0.0" + pretty-format "^26.0.0" + "@types/lru-cache@^5.1.0": version "5.1.0" resolved "https://registry.yarnpkg.com/@types/lru-cache/-/lru-cache-5.1.0.tgz#57f228f2b80c046b4a1bd5cac031f81f207f4f03"