Files
hub-monorepo/packages/core/jest.config.ts
PangZhi c4529a7ef2 feat: merge protobufs and utils into core package (#818)
* 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
2023-04-04 19:21:30 -07:00

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;