diff --git a/src/test/core.spec.ts b/src/test/core.spec.ts index 35bf41b..2f1d2fc 100644 --- a/src/test/core.spec.ts +++ b/src/test/core.spec.ts @@ -1,3 +1,4 @@ +import 'openai/shims/node' import { getFile, getRootFolder, saveFilePublic } from '../core/core'; import * as fs from 'fs/promises'; import * as appConsole from '../utils/console'; diff --git a/src/test/json-file.spec.ts b/src/test/json-file.spec.ts index 8c8c12b..14160aa 100644 --- a/src/test/json-file.spec.ts +++ b/src/test/json-file.spec.ts @@ -1,3 +1,4 @@ +import 'openai/shims/node' import { fileTranslator } from '../core/json_file'; import * as appConsole from '../utils/console'; import * as jsonObject from '../core/json_object'; diff --git a/src/test/json-object.spec.ts b/src/test/json-object.spec.ts index f0e1875..188c5ea 100644 --- a/src/test/json-object.spec.ts +++ b/src/test/json-object.spec.ts @@ -1,3 +1,4 @@ +import 'openai/shims/node' import * as translator from '../core/translator'; import { deepDiver, objectTranslator } from '../core/json_object'; import { GoogleTranslateLanguages } from '../modules/languages'; diff --git a/src/test/translator.spec.ts b/src/test/translator.spec.ts index cf61f5c..efc6224 100644 --- a/src/test/translator.spec.ts +++ b/src/test/translator.spec.ts @@ -1,4 +1,5 @@ /// +import 'openai/shims/node' import nock from 'nock'; import { plaintranslate } from '../core/translator'; import { DeepLTranslateLanguages } from '../modules/languages'; diff --git a/src/test/util.test.ts b/src/test/util.test.ts index 0c8496e..24de69f 100644 --- a/src/test/util.test.ts +++ b/src/test/util.test.ts @@ -1,3 +1,4 @@ +import 'openai/shims/node' import { error, info, success, warn } from '../utils/console'; declare global { diff --git a/test/util.test.ts b/test/util.test.ts index cb255bc..b861caf 100644 --- a/test/util.test.ts +++ b/test/util.test.ts @@ -1,3 +1,4 @@ +import 'openai/shims/node' import { error, info, success, warn } from '../src/utils/console'; declare global {