Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
W-A-James committed Jan 29, 2025
1 parent 4a9c4f7 commit 972d67d
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions .mocharc.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,18 @@
'use strict';


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

module.exports =
{
$schema: "https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/mocharc.json",
require: [
"source-map-support/register",
"ts-node/register"
],
extension: [
"js",
"ts"
],
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
}
'node-option': nodeOptions
};

0 comments on commit 972d67d

Please sign in to comment.