Skip to content

Commit 549ef93

Browse files
Laoujinclaude
andcommitted
Fix mongodb import for ES modules compatibility
Use default import pattern for mongodb v3.x which doesn't export named ES modules. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 1b1341f commit 549ef93

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

helpers/ConfacFixtures.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { test as base } from '@playwright/test';
2-
import { MongoClient, Db } from 'mongodb';
2+
import pkg from 'mongodb';
3+
const { MongoClient } = pkg;
4+
type Db = pkg.Db;
35

46
type ConfacFixtures = {
57
db: Db;

0 commit comments

Comments
 (0)