Use esm package with mocha #3

Closed
PhilippRaab wants to merge 1 commit from fix-test-script into master
PhilippRaab commented 2020-09-17 12:36:02 +02:00 (Migrated from github.com)
No description provided.
satchmorun commented 2020-09-21 17:34:02 +02:00 (Migrated from github.com)

Now that the other 2 PRs are merged, do you mind squashing this down? Seems that this PR can now just be the one commit "Use esm package with mocha".

Now that the other 2 PRs are merged, do you mind squashing this down? Seems that this PR can now just be the one commit "Use esm package with mocha".
marijnh commented 2020-09-23 09:59:41 +02:00 (Migrated from github.com)

What does this fix? With recent Mocha versions ES module tests run fine without loading esm

What does this fix? With recent Mocha versions ES module tests run fine without loading esm
PhilippRaab commented 2020-09-23 10:39:46 +02:00 (Migrated from github.com)

I get following error when not using esm:

image

I get following error when not using esm: ![image](https://user-images.githubusercontent.com/11347054/93988476-0a195280-fd89-11ea-9001-5a8514df1c25.png)
marijnh commented 2020-09-23 10:56:37 +02:00 (Migrated from github.com)

With Mocha 8? Which node version are you running?

With Mocha 8? Which node version are you running?
PhilippRaab commented 2020-09-23 11:49:11 +02:00 (Migrated from github.com)

It's working now. I had to update node to version > 12.11 (see: https://github.com/mochajs/mocha/pull/4038).

It's working now. I had to update node to version > 12.11 (see: https://github.com/mochajs/mocha/pull/4038).

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lezer/json!3
No description provided.