/** * GRU transport API tests require `config/token-mapping-loader.cjs` to export * getGruTransportMetadata + getActiveTransportPairs backed by `config/gru-transport-active.json` * (not yet published in the monorepo). Run them explicitly: * RUN_GRU_TRANSPORT_LOADER_TESTS=1 npm run test:ci */ const runGruTransportLoaderTests = process.env.RUN_GRU_TRANSPORT_LOADER_TESTS === '1'; /** @type {import('jest').Config} */ module.exports = { preset: 'ts-jest', testEnvironment: 'node', roots: ['/src'], testMatch: ['**/*.test.ts'], moduleFileExtensions: ['ts', 'js', 'json'], testPathIgnorePatterns: runGruTransportLoaderTests ? [] : [ '/src/config/gru-transport\\.test\\.ts$', '/src/api/routes/token-mapping\\.test\\.ts$', '/src/api/routes/bridge\\.test\\.ts$', ], };