Skip to content

Commit f5e1f94

Browse files
committed
Adjust integration tests for Node.js 12.17 supporting ESM out of the box
1 parent a901672 commit f5e1f94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test-tap/integration/assorted.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ test('selects .cjs test files', t => {
166166

167167
test('load .mjs test files (when node supports it)', t => {
168168
execCli('mjs.mjs', (err, stdout) => {
169-
if (Number.parseFloat(process.version.slice(1)) >= 13) {
169+
if (Number.parseFloat(process.version.slice(1)) >= 12.17) {
170170
t.ifError(err);
171171
t.match(stdout, /1 test passed/);
172172
t.end();
@@ -180,7 +180,7 @@ test('load .mjs test files (when node supports it)', t => {
180180

181181
test('load .js test files as ESM modules (when node supports it)', t => {
182182
execCli('test.js', {dirname: 'fixture/pkg-type-module'}, (err, stdout) => {
183-
if (Number.parseFloat(process.version.slice(1)) >= 13) {
183+
if (Number.parseFloat(process.version.slice(1)) >= 12.17) {
184184
t.ifError(err);
185185
t.match(stdout, /1 test passed/);
186186
t.end();

0 commit comments

Comments
 (0)