mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
432d1b50e0
This commit adds a new 'test' module that exposes an API for creating JavaScript tests. As the tests execute, TAP output is written to standard output. This commit only supports executing individual test files, and does not implement command line functionality for a full test runner. PR-URL: https://github.com/nodejs/node/pull/42325 Refs: https://github.com/nodejs/node/issues/40954 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
9 lines
227 B
JavaScript
9 lines
227 B
JavaScript
'use strict';
|
|
const test = require('internal/test_runner/harness');
|
|
const { emitExperimentalWarning } = require('internal/util');
|
|
|
|
emitExperimentalWarning('The test runner');
|
|
|
|
module.exports = test;
|
|
module.exports.test = test;
|