From 257f885e18dff19861b84352409f8b3ddb2e831a Mon Sep 17 00:00:00 2001 From: kurpav Date: Tue, 7 Nov 2023 23:23:40 +0200 Subject: [PATCH] refactor: revert back require for openai lib --- src/test/core.int.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/core.int.test.ts b/src/test/core.int.test.ts index 8414c0d..3ed6bec 100644 --- a/src/test/core.int.test.ts +++ b/src/test/core.int.test.ts @@ -14,7 +14,6 @@ import { xdescribe } from '@jest/globals'; import { request } from 'undici'; -import OpenAI from 'openai'; import { ErrorPayloadType, EventRequestType } from '../types'; import initialDB from './initial-db'; import http from 'http'; @@ -513,6 +512,7 @@ describe('local client id and secret', () => { xdescribe('testing openAI', () => { test('simple chat completion call being logged', async () => { /* eslint-disable-next-line @typescript-eslint/no-var-requires */ + const OpenAI = require('openai'); await Supergood.init( { clientId: CLIENT_ID,