@stryker-mutator/core
Version:
The extendable JavaScript mutation testing framework
11 lines • 364 B
JavaScript
import { fileURLToPath } from 'url';
import path from 'path';
export function sleep(ms = 0) {
return new Promise((res) => {
setTimeout(res, ms);
});
}
export function resolveFromRoot(...pathSegments) {
return path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', '..', '..', ...pathSegments);
}
//# sourceMappingURL=test-utils.js.map