Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fasttime committed Oct 24, 2023
1 parent e7c10b0 commit 52ca6a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/patch-esmock.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@

import { promises as fs } from "fs";

// esmock < 2.4 supports only Node.js < 19. esmock >= 2.4 supports only Node.js >= 18.6.
// * esmock < 2.4 works only on Node.js < 19.
// * esmock >= 2.4 works only on Node.js >= 18.6.
// If we are running Node.js < 19, replace the esmock dependency with the legacy release.
// 111 is the ABI version number of Node.js 19: https://nodejs.org/en/download/releases
if (process.versions.modules < 111) {
(async () => {
await fs.rmdir("node_modules/esmock", { recursive: true });
Expand Down

0 comments on commit 52ca6a0

Please sign in to comment.