@sprucelabs/spruce-cli
Version:
Command line interface for building Spruce skills.
29 lines • 1.08 kB
JavaScript
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const AbstractCliTest_1 = __importDefault(require("./AbstractCliTest"));
class AbstractSkillTest extends AbstractCliTest_1.default {
static skillDir;
static cli;
static skillCacheKey;
static async beforeAll() {
if (!this.skillCacheKey) {
throw new Error("You must implement `protected static skillCacheKey = 'stores'`");
}
await super.beforeAll();
await this.reInstallSkill();
}
static async beforeEach() {
await super.beforeEach();
this.cwd = this.skillDir;
this.cli = await this.Cli();
}
static async reInstallSkill(key = this.skillCacheKey) {
this.cwd = this.skillDir = this.freshTmpDir();
this.cli = await this.FeatureFixture().installCachedFeatures(key);
}
}
exports.default = AbstractSkillTest;
//# sourceMappingURL=AbstractSkillTest.js.map
;