UNPKG

@sprucelabs/spruce-cli

Version:

Command line interface for building Spruce skills.

23 lines 813 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const globby_1 = __importDefault(require("@sprucelabs/globby")); const schema_1 = require("@sprucelabs/schema"); class StaticTestFinderImpl { static Class; static Finder() { return new (this.Class ?? this)(); } async find(lookupDir) { (0, schema_1.assertOptions)({ lookupDir }, ['lookupDir']); const matches = await (0, globby_1.default)([ `${lookupDir}/**/Abstract*Test.ts`, `${lookupDir}/**/*.test.ts`, ]); return matches; } } exports.default = StaticTestFinderImpl; //# sourceMappingURL=StaticTestFinder.js.map