Skip to content

Using D1Dialect causes worker tests to fail - Cannot use require() to import an ES Module. #27

Description

@Suman085

Initializing D1Dialect causes my tests to not run as expected.

	private async initializeDb(db: D1Database) {
		this.db = new Kysely<Database>({
			dialect: new D1Dialect({ database: db }),
		});
	}

image

Happy to help...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions