diff --git a/jest.config.ts b/jest.config.ts index 33e05f3..a7963ca 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -21,7 +21,11 @@ const config: JestConfigWithTsJest = { '/node_modules/', '/src/__tests__/setup.ts', '/src/__tests__/utils/' - ] + ], + // Display test execution in more detail + verbose: true, + // Fail fast if a test fails + bail: 1 }; export default config; diff --git a/package.json b/package.json index d47490b..6c56891 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,8 @@ "dev": "tsx watch src/index.ts", "prebuild": "rm -rf dist", "build": "esbuild src/index.ts --bundle --platform=node --outdir=dist --format=esm --sourcemap --packages=external && cp .env dist/ 2>/dev/null || true", - "test": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest --config jest.config.ts --detectOpenHandles", - "test:related": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest --config jest.config.ts --bail --findRelatedTests src/__tests__/*.test.ts", + "test": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest --config jest.config.ts --detectOpenHandles --maxWorkers=50% --maxConcurrency=7", + "test:related": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest --config jest.config.ts --bail --findRelatedTests src/__tests__/*.test.ts --maxWorkers=50% --maxConcurrency=7", "smoke-test": "node scripts/smoke-test.js", "smoke-test:precommit": "SMOKE_TEST_PORT=4000 node scripts/smoke-test.js", "lint": "eslint .", diff --git a/src/__tests__/chain-config.test.ts b/src/__tests__/chain-config.test.ts index 6ebbb3b..fd336bc 100644 --- a/src/__tests__/chain-config.test.ts +++ b/src/__tests__/chain-config.test.ts @@ -4,7 +4,7 @@ describe('Chain Configuration', () => { it('should return correct finalization threshold for known chains', () => { expect(getFinalizationThreshold('1')).toBe(25); // Ethereum Mainnet expect(getFinalizationThreshold('10')).toBe(2); // Optimism - expect(getFinalizationThreshold('8453')).toBe(4); // Base + expect(getFinalizationThreshold('8453')).toBe(2); // Base }); it('should return default finalization threshold for unknown chains', () => { diff --git a/src/chain-config.ts b/src/chain-config.ts index 359046f..9f8d3bf 100644 --- a/src/chain-config.ts +++ b/src/chain-config.ts @@ -18,7 +18,7 @@ export const chainConfig: ChainConfig = { // Optimism '10': 2, // Base - '8453': 4, + '8453': 2, }, };