diff --git a/packages/voice/package.json b/packages/voice/package.json index 0ddbe6251..1d5d7514e 100644 --- a/packages/voice/package.json +++ b/packages/voice/package.json @@ -76,6 +76,7 @@ "prettier": "^2.4.1", "standard-version": "^9.3.2", "tsup": "^5.11.11", + "tweetnacl": "^1.0.3", "typedoc": "^0.22.8", "typescript": "^4.4.4" }, diff --git a/packages/voice/src/util/__tests__/Secretbox.test.ts b/packages/voice/src/util/__tests__/Secretbox.test.ts index 029f80a29..1ef564632 100644 --- a/packages/voice/src/util/__tests__/Secretbox.test.ts +++ b/packages/voice/src/util/__tests__/Secretbox.test.ts @@ -1,14 +1,6 @@ import { methods } from '../Secretbox'; -jest.mock( - 'tweetnacl', - () => ({ - secretbox: { - // eslint-disable-next-line @typescript-eslint/no-empty-function - open() {}, - }, - }), - { virtual: true }, -); + +jest.mock('tweetnacl'); test('Does not throw error with a package installed', () => { // @ts-expect-error