diff --git a/.eslintrc.js b/.eslintrc.cjs similarity index 100% rename from .eslintrc.js rename to .eslintrc.cjs diff --git a/package.json b/package.json index d16ba705a6..4d6cbc820a 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/packages/rpc-provider/src/substrate-connect/ScProvider.spec.ts b/packages/rpc-provider/src/substrate-connect/ScProvider.spec.ts index 1deea9aba9..45cfa78bb0 100644 --- a/packages/rpc-provider/src/substrate-connect/ScProvider.spec.ts +++ b/packages/rpc-provider/src/substrate-connect/ScProvider.spec.ts @@ -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; - mockedHealthChecker = healthCheckerFactory(); + mockedHealthChecker = healthCheckerFactory(); // await import('./Health') }); describe('ScProvider', () => {