+2
-3
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user