diff --git a/e2e/cjs/utils.js b/e2e/cjs/utils.js index a0832c51..ac6e547b 100644 --- a/e2e/cjs/utils.js +++ b/e2e/cjs/utils.js @@ -1,3 +1,5 @@ +const { MemoryStorage } = require('@mtcute/core/storage/memory.js') + exports.getApiParams = () => { if (!process.env.API_ID || !process.env.API_HASH) { throw new Error('API_ID and API_HASH env variables must be set') @@ -7,5 +9,6 @@ exports.getApiParams = () => { apiId: parseInt(process.env.API_ID), apiHash: process.env.API_HASH, testMode: true, + storage: new MemoryStorage(), } } diff --git a/e2e/esm/utils.js b/e2e/esm/utils.js index 67fa1e68..8bbb6b6d 100644 --- a/e2e/esm/utils.js +++ b/e2e/esm/utils.js @@ -1,3 +1,5 @@ +import { MemoryStorage } from '@mtcute/core/storage/memory.js' + export const getApiParams = () => { if (!process.env.API_ID || !process.env.API_HASH) { throw new Error('API_ID and API_HASH env variables must be set') @@ -7,5 +9,6 @@ export const getApiParams = () => { apiId: parseInt(process.env.API_ID), apiHash: process.env.API_HASH, testMode: true, + storage: new MemoryStorage(), } } diff --git a/e2e/ts/utils.ts b/e2e/ts/utils.ts index f747f8be..32fe9e55 100644 --- a/e2e/ts/utils.ts +++ b/e2e/ts/utils.ts @@ -1,4 +1,5 @@ import { BaseTelegramClientOptions } from '@mtcute/core' +import { MemoryStorage } from '@mtcute/core/storage/memory.js' export const getApiParams = (): BaseTelegramClientOptions => { if (!process.env.API_ID || !process.env.API_HASH) { @@ -9,5 +10,6 @@ export const getApiParams = (): BaseTelegramClientOptions => { apiId: parseInt(process.env.API_ID), apiHash: process.env.API_HASH, testMode: true, + storage: new MemoryStorage(), } }