mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
workspace: use node:test to replace mocha
This commit is contained in:
1 parent
188a8c6ed0
commit
e5de4f101b
6 files changed
+27
-20
No files matched your search
@@ -1,3 +1,6 @@
|
||||
process.env.CI = true;
|
||||
const version = process.versions.node.split('.');
|
||||
version.pop();
|
||||
if (+version.join('.') < 18.8) throw new Error('Tests only available in NodeJS>=18.8');
|
||||
require('hydrooj/bin/hydrooj');
|
||||
require('./main');
|
||||
Reference in new issue
Block a user