1 | "use strict";
|
2 | var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3 | var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4 | if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5 | else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6 | return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7 | };
|
8 | var __metadata = (this && this.__metadata) || function (k, v) {
|
9 | if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10 | };
|
11 | var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
12 | function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
13 | return new (P || (P = Promise))(function (resolve, reject) {
|
14 | function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
15 | function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
16 | function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
17 | step((generator = generator.apply(thisArg, _arguments || [])).next());
|
18 | });
|
19 | };
|
20 | Object.defineProperty(exports, "__esModule", { value: true });
|
21 | exports.TestIntegrationCommand = void 0;
|
22 | const clipanion_1 = require("clipanion");
|
23 | const code_test_1 = require("@monstrs/code-test");
|
24 | class TestIntegrationCommand extends clipanion_1.Command {
|
25 | execute() {
|
26 | return __awaiter(this, void 0, void 0, function* () {
|
27 | yield code_test_1.integration(process.cwd());
|
28 | });
|
29 | }
|
30 | }
|
31 | __decorate([
|
32 | clipanion_1.Command.Path(`test:integration`),
|
33 | __metadata("design:type", Function),
|
34 | __metadata("design:paramtypes", []),
|
35 | __metadata("design:returntype", Promise)
|
36 | ], TestIntegrationCommand.prototype, "execute", null);
|
37 | exports.TestIntegrationCommand = TestIntegrationCommand;
|