Files
DOMPurify/test/jsdom-node-runner.js
T
RotzbuaandGitHub 2aeabf496b fix: remove deprecated call QUnit.load() (#1188)
This is no longer needed since QUnit 2.1.1, and the call to QUnit.load() is safe to remove.
https://qunitjs.com/api/QUnit/load/
2026-01-13 11:12:29 +01:00

25 lines
477 B
JavaScript

/* jshint node: true, esnext: true */
/* global QUnit */
'use strict';
global.QUnit = require('qunit');
const qunitTap = require('qunit-tap');
const argument = process.argv[2];
qunitTap(QUnit, (line) => {
if (/^not ok/.test(line)) {
process.exitCode = 1;
return console.log('\n', line);
}
if (argument === '--dot') {
return process.stdout.write('.');
}
console.log(line);
});
const startQUnit = require('./jsdom-node');
startQUnit().then(() => {});