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
View File
+2 -3
View File
@@ -9,8 +9,8 @@
"type": "git",
"url": "https://github.com/polkadot-js/api.git"
},
"type": "module",
"sideEffects": false,
"type": "commonjs",
"version": "8.11.4-13-x",
"workspaces": [
"packages/*"
@@ -27,8 +27,7 @@
"lint": "polkadot-dev-run-lint",
"postinstall": "polkadot-dev-yarn-only",
"test": "NODE_OPTIONS=--experimental-vm-modules polkadot-dev-run-test --coverage --forceExit --runInBand --testPathIgnorePatterns e2e",
"test:one": "polkadot-dev-run-test --detectOpenHandles --forceExit",
"test:watch": "polkadot-dev-run-test --watch"
"test:one": "NODE_OPTIONS=--experimental-vm-modules polkadot-dev-run-test --detectOpenHandles --forceExit"
},
"devDependencies": {
"@babel/core": "^7.18.6",
@@ -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', () => {