Files
hub-monorepo/apps/hubble/jest.config.ts
Tony D'Addeo 159c62df7a chore(hubble): use viem to interact with ethereum (#997)
* chore: use viem to interact with ethereum

* add ViemLocalEip712Signer to exports

* add codecov exceptions

* upgrade viem

* add log for historically synced blocks

* fix test

* poll every 4 seconds

* clean up pre-viem 1.0 code

* update viem

* update comments
2023-06-22 14:50:18 -05:00

23 lines
688 B
TypeScript

import type { Config } from 'jest';
const jestConfig: Config = {
testEnvironment: 'node',
coveragePathIgnorePatterns: ['<rootDir>/build/', '<rootDir>/node_modules/'],
testPathIgnorePatterns: ['<rootDir>/build', '<rootDir>/node_modules'],
extensionsToTreatAsEsm: ['.ts'],
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
},
/**
* For high performance with minimal configuration transform with TS with swc.
* @see https://github.com/farcasterxyz/hub/issues/314
*/
transform: {
'^.+\\.(t|j)sx?$': '@swc/jest',
},
globalSetup: '<rootDir>/src/test/globalSetup.js',
globalTeardown: '<rootDir>/src/test/globalTeardown.js',
};
export default jestConfig;