79500583

Date: 2025-03-11 11:40:27
Score: 2
Natty:
Report link

Quite old question, but this was my fix as of 2025:

npm install -D tsx

in package.json:

{
    "scripts": {
        "test-old": "mocha -r ts-node/register tests/**/*.test.ts",
        "test": "mocha -r tsx tests/**/*.test.ts",
    }
}

ts-node/register did not work, but tsx saved the day. Thanks to Jazcash

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): did not work
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alex