Skip to content

Commit

Permalink
Fix initDb lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pozylon committed Jan 9, 2025
1 parent f5e8e37 commit 775b762
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/mongodb/src/initDb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ import { Db, MongoClient } from 'mongodb';
let zstdEnabled = false;

try {
// @ts-ignore
// eslint-disable-next-line
// @ts-expect-error
await import('@mongodb-js/zstd');
zstdEnabled = true;
} catch {
/* */
}

const { mkdir } = await import('node:fs/promises');

const { MongoMemoryServer } = await import('mongodb-memory-server');
try {
await mkdir(`${process.cwd()}/.db`);
Expand Down

0 comments on commit 775b762

Please sign in to comment.