diff --git a/tests/general.test.ts b/tests/general.test.ts index a1e5a02..082ee3d 100644 --- a/tests/general.test.ts +++ b/tests/general.test.ts @@ -18,7 +18,8 @@ import { } from './core'; const serverUrl = process.env.DEEPL_SERVER_URL; -const urlToMockRegexp = /(https?:\/\/api.*\.deepl\.com)|(deepl-mock:\d+)/; +const urlToMockRegexp = + /(https?:\/\/api.*\.deepl\.com)|(deepl-mock:\d+)|(https?:\/\/localhost:\d+)/; describe('general', () => { it('rejects empty authKey', () => {