Sha256: 866527f08968b2f5b1047fbb5fe5c947ed9742128d45847194521ff495830bb4
Contents?: true
Size: 603 Bytes
Versions: 1
Compression:
Stored size: 603 Bytes
Contents
import * as path from 'path'; import * as Mocha from 'mocha'; import * as glob from 'glob'; export function run(testsRoot: string, callback: (error: any, failures?: number) => void): void { const mocha = new Mocha({ ui: 'bdd', timeout: 600000, }); mocha.useColors(true); glob('**/**.test.js', { cwd: testsRoot }, (error, files) => { if (error) { return callback(error); } files.forEach(file => mocha.addFile(path.resolve(testsRoot, file))); try { mocha.run(failures => callback(null, failures)) } catch (error) { callback(error) } }); }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yoda-language-server-0.8.0 | client/vscode/src/test/suite/index.ts |