Skip to content

Commit bb2c651

Browse files
committed
chore: skip on node 22.7.0
1 parent 3fccd97 commit bb2c651

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

test/integration/crud/insert.test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
'use strict';
2+
const semver = require('semver');
23
const { assert: test, ignoreNsNotFound, setupDatabase } = require('../shared');
34
const { format: f } = require('util');
45
const { expect } = require('chai');
@@ -1680,6 +1681,11 @@ describe('crud - insert', function () {
16801681
},
16811682

16821683
test: function (done) {
1684+
if (semver.satisfies(process.versions.node, '22.7.0')) {
1685+
this.skipReason = 'Node.js 22.7.0 has a UTF-8 encoding bug';
1686+
this.skip();
1687+
}
1688+
16831689
var regexp = /foobaré/;
16841690

16851691
var configuration = this.configuration;

test/integration/crud/unicode.test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
'use strict';
2+
const semver = require('semver');
23
const { assert: test, setupDatabase } = require('../shared');
34
const { expect } = require('chai');
45

@@ -13,6 +14,11 @@ describe('Unicode', function () {
1314
},
1415

1516
test: function (done) {
17+
if (semver.satisfies(process.versions.node, '22.7.0')) {
18+
this.skipReason = 'Node.js 22.7.0 has a UTF-8 encoding bug';
19+
this.skip();
20+
}
21+
1622
var configuration = this.configuration;
1723
var client = configuration.newClient(configuration.writeConcernMax(), { maxPoolSize: 1 });
1824
client.connect(function (err, client) {

0 commit comments

Comments
 (0)