mirror of
https://github.com/farcasterxyz/hub-monorepo.git
synced 2026-04-18 03:00:22 -04:00
* 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
23 lines
688 B
TypeScript
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;
|