2023-03-15 08:52:17 +00:00
|
|
|
#!/usr/bin/env node
|
|
|
|
"use strict";
|
2023-05-08 18:15:22 +00:00
|
|
|
const fs = require('fs');
|
2023-03-15 08:52:17 +00:00
|
|
|
const path = require('path');
|
|
|
|
|
2023-05-08 18:15:22 +00:00
|
|
|
let codeRoot = path.dirname(path.dirname(__dirname));
|
|
|
|
if (!fs.existsSync(path.join(codeRoot, '_build'))) {
|
|
|
|
codeRoot = path.dirname(codeRoot);
|
|
|
|
}
|
2023-03-15 08:52:17 +00:00
|
|
|
|
2023-05-08 18:15:22 +00:00
|
|
|
process.env.DATA_PATH = path.join(__dirname, 'data');
|
2023-03-15 08:52:17 +00:00
|
|
|
|
|
|
|
require('app-module-path').addPath(path.join(codeRoot, '_build'));
|
|
|
|
require('app-module-path').addPath(path.join(codeRoot, '_build', 'core'));
|
|
|
|
require('app-module-path').addPath(path.join(codeRoot, '_build', 'ext'));
|
2023-05-08 18:15:22 +00:00
|
|
|
require('app-module-path').addPath(path.join(codeRoot, '_build', 'stubs'));
|
2023-03-15 08:52:17 +00:00
|
|
|
require('test/formula-dataset/runCompletion_impl').runCompletion().catch(console.error);
|