T-57: merge dev

This commit is contained in:
Studio 2026-11-27 17:45:11 -05:00
commit 025ab8537c
7 changed files with 3342 additions and 16 deletions

View file

@ -90,7 +90,7 @@ async function ingest(mongodb: MongoDBClient, bars = intradayResponse()) {
return Response.json(bars);
};
const previousToken = EOD_CONFIG.API_TOKEN;
EOD_CONFIG.API_TOKEN = 'test-fixture-token';
EOD_CONFIG.API_TOKEN = 'test-eod-fixture-token';
const request = spyOn(globalThis, 'fetch').mockImplementation(
Object.assign(fakeFetch, { preconnect: globalThis.fetch.preconnect })
);
@ -102,8 +102,8 @@ async function ingest(mongodb: MongoDBClient, bars = intradayResponse()) {
toDate: end,
});
} finally {
EOD_CONFIG.API_TOKEN = previousToken;
request.mockRestore();
EOD_CONFIG.API_TOKEN = previousToken;
}
}