workspace: fix engine version check
parent
cca5cb895e
commit
50dc6f25b3
@ -1,6 +1,6 @@
|
||||
process.env.CI = true;
|
||||
const version = process.versions.node.split('.');
|
||||
const version = process.versions.node.split('.').map((i) => i.padStart(2, '0'));
|
||||
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('./main');
|
||||
|
Loading…
Reference in New Issue