@rstest/core
Version:
The Rsbuild-based test tool.
21 lines (17 loc) • 397 B
JavaScript
import nodeModule from 'node:module';
// enable on-disk code caching of all modules loaded by Node.js
// requires Nodejs >= 22.8.0
const { enableCompileCache } = nodeModule;
if (enableCompileCache) {
try {
enableCompileCache();
} catch {
// ignore errors
}
}
async function main() {
const { runCLI } = await import('../dist/index.js');
runCLI();
}
main();