mirror of
https://github.com/farcasterxyz/hub-monorepo.git
synced 2026-04-18 03:00:22 -04:00
* remove protobufs as a package, merge into utils * update yarn.lock * rename utils package to core * update docker * add changeset * tsup config * change schema path in workflow file * update protobufs readme link
22 lines
659 B
TypeScript
22 lines
659 B
TypeScript
import type { Config } from 'jest';
|
|
|
|
const jestConfig: Config = {
|
|
testEnvironment: 'node',
|
|
moduleNameMapper: {
|
|
'^~/(.*)$': '<rootDir>/src/$1',
|
|
'^(.+)_generated.js$': '$1_generated', // Support flatc generated files
|
|
},
|
|
coveragePathIgnorePatterns: ['<rootDir>/build/', '<rootDir>/node_modules/'],
|
|
testPathIgnorePatterns: ['<rootDir>/build', '<rootDir>/node_modules'],
|
|
extensionsToTreatAsEsm: ['.ts'],
|
|
/**
|
|
* For high performance with minimal configuration transform with TS with swc.
|
|
* @see https://github.com/farcasterxyz/hubble/issues/314
|
|
*/
|
|
transform: {
|
|
'^.+\\.(t|j)sx?$': '@swc/jest',
|
|
},
|
|
};
|
|
|
|
export default jestConfig;
|