Skip to content

test(NODE-6679): restore node latest testing #746

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,17 +166,16 @@ tasks:
NODE_LTS_VERSION: 22
- func: install dependencies
- func: run tests
# TODO(NODE-6662): Fix tests on latest.
# - name: node-tests-latest
# tags: ["node"]
# commands:
# - func: fetch source
# vars:
# NODE_LTS_VERSION: latest
# - func: install dependencies
# - func: run tests
# vars:
# TEST_TARGET: node
- name: node-tests-latest
tags: ["node"]
commands:
- func: fetch source
vars:
NODE_LTS_VERSION: latest
- func: install dependencies
- func: run tests
vars:
TEST_TARGET: node
- name: web-tests
tags: ["web"]
commands:
Expand Down
19 changes: 19 additions & 0 deletions .mocharc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
'use strict';

const nodeOptions = ['experimental-vm-modules'];
const [major] = process.versions.node.split('.');
if (Number(major) >= 23) {
nodeOptions.push('no-experimental-strip-types');
}

/** @type {import("mocha").MochaOptions} */
module.exports = {
require: ['source-map-support/register', 'ts-node/register'],
extension: ['js', 'ts'],
recursive: true,
timeout: 10000,
failZero: true,
sort: true,
color: true,
'node-option': nodeOptions
};
19 changes: 0 additions & 19 deletions .mocharc.json

This file was deleted.