From a2281b36024cb49bb96145feb181c9f47d03afe2 Mon Sep 17 00:00:00 2001 From: Amaury Date: Sat, 13 Feb 2021 13:39:07 +0100 Subject: [PATCH] Replace package sinon and sinon-chai with ts-sinon and @types/sinon-chai --- package-lock.json | 43 +++++++++++++++++++++++++++++++++++++------ package.json | 4 ++-- 2 files changed, 39 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0baa618..bba4e6a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -160,6 +160,31 @@ "integrity": "sha512-EPpXLOVqDvisVxtlbvzfyqSsFeQxltFbluZNRndIb8tr9KiBnYNLzrc1N3pyKUCww2RNrfHDViqDWWE1LCJQtQ==", "dev": true }, + "@types/sinon": { + "version": "9.0.10", + "resolved": "https://registry.npmjs.org/@types/sinon/-/sinon-9.0.10.tgz", + "integrity": "sha512-/faDC0erR06wMdybwI/uR8wEKV/E83T0k4sepIpB7gXuy2gzx2xiOjmztq6a2Y6rIGJ04D+6UU0VBmWy+4HEMA==", + "dev": true, + "requires": { + "@types/sinonjs__fake-timers": "*" + } + }, + "@types/sinon-chai": { + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/@types/sinon-chai/-/sinon-chai-3.2.5.tgz", + "integrity": "sha512-bKQqIpew7mmIGNRlxW6Zli/QVyc3zikpGzCa797B/tRnD9OtHvZ/ts8sYXV+Ilj9u3QRaUEM8xrjgd1gwm1BpQ==", + "dev": true, + "requires": { + "@types/chai": "*", + "@types/sinon": "*" + } + }, + "@types/sinonjs__fake-timers": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/@types/sinonjs__fake-timers/-/sinonjs__fake-timers-6.0.2.tgz", + "integrity": "sha512-dIPoZ3g5gcx9zZEszaxLSVTvMReD3xxyyDnQUjA6IYDG9Ba2AV0otMPs+77sG9ojB4Qr2N2Vk5RnKeuA0X/0bg==", + "dev": true + }, "@typescript-eslint/eslint-plugin": { "version": "4.14.2", "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.14.2.tgz", @@ -2266,12 +2291,6 @@ } } }, - "sinon-chai": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/sinon-chai/-/sinon-chai-3.5.0.tgz", - "integrity": "sha512-IifbusYiQBpUxxFJkR3wTU68xzBN0+bxCScEaKMjBvAQERg6FnTTc1F17rseLb1tjmkJ23730AXpFI0c47FgAg==", - "dev": true - }, "slash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", @@ -2521,6 +2540,18 @@ "yn": "3.1.1" } }, + "ts-sinon": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ts-sinon/-/ts-sinon-2.0.1.tgz", + "integrity": "sha512-uI5huDCY6Gw6Yczmyd/Jcu8gZZYtWO0HakPShvDmlrgcywLyFZ7lgWt1y+gd/x79ReHh+rhMAJkhQkGRnPNikw==", + "dev": true, + "requires": { + "@types/node": "^14.6.1", + "@types/sinon": "^9.0.5", + "@types/sinon-chai": "^3.2.4", + "sinon": "^9.0.3" + } + }, "tsc-watch": { "version": "4.2.9", "resolved": "https://registry.npmjs.org/tsc-watch/-/tsc-watch-4.2.9.tgz", diff --git a/package.json b/package.json index 9e7e283..0140f13 100644 --- a/package.json +++ b/package.json @@ -35,8 +35,8 @@ "mocha": "8.2.1", "prettier": "2.2.1", "proxyquire": "2.1.3", - "sinon": "9.2.4", - "sinon-chai": "3.5.0", + "ts-sinon": "2.0.1", + "@types/sinon-chai": "3.2.5", "ts-node": "9.1.1", "tsc-watch": "^4.2.9", "typescript": "^4.1.3"