v8flags icon indicating copy to clipboard operation
v8flags copied to clipboard

Update test harness

Open phated opened this issue 1 month ago • 1 comments

Update the test harness. This includes:

  • Replace mocha with node:test
  • Replace expect with node:assert
  • Replace proxyquire with node's module mocker
  • Replace nyc with built-in node test runner using the npm test command
    • node --test --experimental-test-coverage --test-reporter=spec --test-reporter-destination=stdout --test-reporter=lcov --test-reporter-destination=test/lcov.info \"test/*.js\"
  • Remove the pretest script (if it exists)
  • Remove the dependencies and update the lockfile with npm i --package-lock-only

phated avatar Oct 20 '26 22:10 phated

@FotoVerite Heads up! There is a new item here to replace proxyquire with module mocking.

phated avatar Oct 20 '26 22:10 phated