mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
ae7f6139cc
Ref gh-5440
33 lines
703 B
JavaScript
33 lines
703 B
JavaScript
"use strict";
|
|
|
|
const { spawn } = require( "node:child_process" );
|
|
const verifyNodeVersion = require( "./lib/verifyNodeVersion" );
|
|
const path = require( "node:path" );
|
|
const os = require( "node:os" );
|
|
|
|
if ( !verifyNodeVersion() ) {
|
|
return;
|
|
}
|
|
|
|
const command = path.resolve(
|
|
__dirname,
|
|
`../../node_modules/.bin/promises-aplus-tests${ os.platform() === "win32" ? ".cmd" : "" }`
|
|
);
|
|
const args = [ "--reporter", "dot", "--timeout", "2000" ];
|
|
const tests = [
|
|
"test/promises_aplus_adapters/deferred.cjs",
|
|
"test/promises_aplus_adapters/when.cjs"
|
|
];
|
|
|
|
async function runTests() {
|
|
tests.forEach( ( test ) => {
|
|
spawn(
|
|
command,
|
|
[ test ].concat( args ),
|
|
{ stdio: "inherit" }
|
|
);
|
|
} );
|
|
}
|
|
|
|
runTests();
|