diff --git a/packages/server/tests/acceptance/index.spec.ts b/packages/server/tests/acceptance/index.spec.ts index a1e3720a97..8e5a4c7b60 100644 --- a/packages/server/tests/acceptance/index.spec.ts +++ b/packages/server/tests/acceptance/index.spec.ts @@ -19,10 +19,10 @@ */ // External resources import { ConfigService } from '@hashgraph/json-rpc-config-service/dist/services'; +import dotenv from 'dotenv'; import path from 'path'; +dotenv.config({ path: path.resolve(__dirname, '../../../../.env') }); -import { ConfigServiceTestHelper } from '../../../config-service/tests/configServiceTestHelper'; -ConfigServiceTestHelper.appendEnvsFromPath(path.resolve(__dirname, '../../../../.env')); // Constants import constants from '@hashgraph/json-rpc-relay/dist/lib/constants'; import { app as wsApp } from '@hashgraph/json-rpc-ws-server/dist/webSocketServer'; diff --git a/packages/ws-server/tests/acceptance/index.spec.ts b/packages/ws-server/tests/acceptance/index.spec.ts index 92f7f74655..aadf932f7c 100644 --- a/packages/ws-server/tests/acceptance/index.spec.ts +++ b/packages/ws-server/tests/acceptance/index.spec.ts @@ -20,10 +20,9 @@ import { Server } from 'node:http'; import { ConfigService } from '@hashgraph/json-rpc-config-service/dist/services'; +import dotenv from 'dotenv'; import path from 'path'; - -import { ConfigServiceTestHelper } from '../../../config-service/tests/configServiceTestHelper'; -ConfigServiceTestHelper.appendEnvsFromPath(path.resolve(__dirname, '../../../../.env')); +dotenv.config({ path: path.resolve(__dirname, '../../../../.env') }); import constants from '@hashgraph/json-rpc-relay/dist/lib/constants'; import { RequestDetails } from '@hashgraph/json-rpc-relay/dist/lib/types'; import { setServerTimeout } from '@hashgraph/json-rpc-server/dist/koaJsonRpc/lib/utils';