workspace: fix engine version check

pull/490/head
undefined 2 years ago
parent cca5cb895e
commit 50dc6f25b3

@ -1,6 +1,6 @@
process.env.CI = true; process.env.CI = true;
const version = process.versions.node.split('.'); const version = process.versions.node.split('.').map((i) => i.padStart(2, '0'));
version.pop(); version.pop();
if (+version.join('.') < 18.8) throw new Error('Tests only available in NodeJS>=18.8'); if (+version.join('.') < 18.08) throw new Error('Tests only available in NodeJS>=18.8');
require('hydrooj/bin/hydrooj'); require('hydrooj/bin/hydrooj');
require('./main'); require('./main');

Loading…
Cancel
Save