mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
* Add check to extension file watch Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com> * Fix tests Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com> * Fix tests on Windows. Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com> * Add logging for Windows test debugging purposes. Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com> * Try to fix tests on Windows again. Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
7 lines
200 B
TypeScript
7 lines
200 B
TypeScript
import fetchMock from "jest-fetch-mock";
|
|
// rewire global.fetch to call 'fetchMock'
|
|
fetchMock.enableMocks();
|
|
|
|
// Mock __non_webpack_require__ for tests
|
|
globalThis.__non_webpack_require__ = jest.fn();
|