test: add environment variables to evaluator test setup

Co-Authored-By: sha.zhou@jina.ai <sha.zhou@jina.ai>
This commit is contained in:
Devin AI
2025-02-11 12:20:46 +00:00
parent 1309d14630
commit e620f222fc

View File

@@ -8,7 +8,12 @@ describe('evaluateAnswer', () => {
beforeEach(() => {
jest.resetModules();
process.env = { ...originalEnv };
process.env = {
...originalEnv,
LLM_PROVIDER: 'openai',
OPENAI_API_KEY: 'test-openai-key',
JINA_API_KEY: 'test-jina-key'
};
});
afterEach(() => {