Adjust test infra (#5044)

* Adjust test infra

* .eslintrc.cjs
This commit is contained in:
Jaco
2022-07-08 15:19:32 +03:00
committed by GitHub
parent 332acbb0c2
commit 5a0281452c
3 changed files with 4 additions and 5 deletions
@@ -74,7 +74,7 @@ const healthCheckerFactory = () => {
};
};
// jest.mock('./Health', () => healthCheckerFactory());
jest.mock('./Health', () => healthCheckerFactory());
type MockChain = Chain & {
_spec: () => string
@@ -202,7 +202,7 @@ beforeAll(async () => {
mockedConnector = (await import(
'@substrate/connect'
)) as unknown as ReturnType<typeof connectorFactory>;
mockedHealthChecker = healthCheckerFactory();
mockedHealthChecker = healthCheckerFactory(); // await import('./Health')
});
describe('ScProvider', () => {