From 56fd884de80b20ff87fab071604701685c8a36ec Mon Sep 17 00:00:00 2001 From: Julian Rabe Date: Mon, 8 Jun 2020 13:40:57 +0200 Subject: [PATCH] fix: Fix line numbers being wrong in index tests (see https://github.com/evanw/node-source-map-support/issues/279) --- __tests__/index.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/__tests__/index.test.ts b/__tests__/index.test.ts index 49a79a6..f226f7d 100644 --- a/__tests__/index.test.ts +++ b/__tests__/index.test.ts @@ -5,6 +5,10 @@ import Twitch2Ma from "../src/lib/Twitch2Ma"; import Fs = require("fs"); import _ = require("lodash"); +// Workaround, see https://github.com/evanw/node-source-map-support/issues/279 +jest.mock("source-map-support"); +//// + jest.mock("../src/lib/Twitch2Ma"); test("Update notification", () => {