1
0
forked from jchomaz/Vulture

Tracking de l'application VApp (IHM du jeu)

This commit is contained in:
2025-05-11 18:04:12 +02:00
commit 89e9db9b62
17763 changed files with 3718499 additions and 0 deletions

25
VApp/node_modules/mux.js/scripts/node-test.js generated vendored Normal file
View File

@@ -0,0 +1,25 @@
/* eslint-disable no-console */
const path = require('path');
const spawn = require('child_process').spawn;
const major = parseInt(process.versions.node.split('.')[0], 10);
const qunitBinary = require.resolve('qunit/bin/qunit.js');
if (major < 10) {
console.error('Cannot run tests on node < 10, please update');
process.exit(1);
}
let args = [qunitBinary, 'test/dist/bundle.js'];
if (major === 10) {
args = ['node', '--experimental-worker'].concat(args);
}
const child = spawn(args[0], args.slice(1), {
cwd: path.join(__dirname, '..'),
stdio: 'inherit'
});
child.on('close', (code) => {
process.exit(code);
});