2026-05-11 21:07:45 -07:00
|
|
|
/**
|
|
|
|
|
* GRU transport API tests require `config/token-mapping-loader.cjs` to export
|
|
|
|
|
* getGruTransportMetadata + getActiveTransportPairs backed by `config/gru-transport-active.json`
|
2026-05-12 00:00:43 -07:00
|
|
|
* (see Proxmox docs/04-configuration/GRU_TRANSPORT_LOADER_DESIGN_SPEC.md). Run them explicitly:
|
2026-05-11 21:07:45 -07:00
|
|
|
* RUN_GRU_TRANSPORT_LOADER_TESTS=1 npm run test:ci
|
|
|
|
|
*/
|
|
|
|
|
const runGruTransportLoaderTests = process.env.RUN_GRU_TRANSPORT_LOADER_TESTS === '1';
|
|
|
|
|
|
2026-03-02 12:14:09 -08:00
|
|
|
/** @type {import('jest').Config} */
|
|
|
|
|
module.exports = {
|
|
|
|
|
preset: 'ts-jest',
|
|
|
|
|
testEnvironment: 'node',
|
|
|
|
|
roots: ['<rootDir>/src'],
|
|
|
|
|
testMatch: ['**/*.test.ts'],
|
|
|
|
|
moduleFileExtensions: ['ts', 'js', 'json'],
|
2026-05-11 21:07:45 -07:00
|
|
|
testPathIgnorePatterns: runGruTransportLoaderTests
|
|
|
|
|
? []
|
|
|
|
|
: [
|
|
|
|
|
'/src/config/gru-transport\\.test\\.ts$',
|
|
|
|
|
'/src/api/routes/token-mapping\\.test\\.ts$',
|
|
|
|
|
'/src/api/routes/bridge\\.test\\.ts$',
|
|
|
|
|
],
|
2026-06-18 00:11:33 -07:00
|
|
|
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
|
2026-03-02 12:14:09 -08:00
|
|
|
};
|