current commit
251007.1 · tools: add lint rule to ensure assertions are reached
'use strict';

require('../common');
const assert = require('node:assert/strict');
const childProcess = require('node:child_process');
const fixtures = require('../common/fixtures');

const child = childProcess.spawnSync(
  process.execPath,
  [ '--no-warnings', '--run', 'non-existent-command'],
  { cwd: fixtures.path('run-script'), encoding: 'utf8' },
);
assert.strictEqual(child.status, 1);
console.log(child.stderr);