Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5,324 changes: 1,263 additions & 4,061 deletions package-lock.json

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@contentstack/apps-cli",
"version": "1.6.3",
"version": "1.6.4",
"description": "App ClI",
"author": "Contentstack CLI",
"homepage": "https://github.com/contentstack/contentstack-apps-cli",
Expand All @@ -21,37 +21,37 @@
],
"dependencies": {
"@apollo/client": "^3.14.0",
"@contentstack/cli-command": "^1.7.0",
"@contentstack/cli-launch": "^1.9.4",
"@contentstack/cli-utilities": "^1.14.4",
"@contentstack/cli-command": "^1.7.2",
"@contentstack/cli-launch": "^1.9.6",
"@contentstack/cli-utilities": "^1.17.1",
"adm-zip": "^0.5.16",
"chalk": "^4.1.2",
"lodash": "^4.17.21",
"lodash": "^4.17.23",
"shelljs": "^0.10.0",
"tmp": "^0.2.5",
"winston": "^3.19.0"
},
"devDependencies": {
"@oclif/test": "^4.1.15",
"@oclif/test": "^4.1.16",
"@types/adm-zip": "^0.5.7",
"@types/chai": "^4.3.20",
"@types/lodash": "^4.17.21",
"@types/lodash": "^4.17.23",
"@types/mocha": "^10.0.10",
"@types/node": "^20.19.27",
"@types/shelljs": "^0.8.17",
"@types/node": "^20.19.33",
"@types/shelljs": "^0.10.0",
"@types/tmp": "^0.2.6",
"@typescript-eslint/eslint-plugin": "^8.50.1",
"@typescript-eslint/parser": "^8.50.1",
"axios": "^1.13.2",
"axios": "^1.13.5",
"chai": "^4.5.0",
"dotenv": "^16.6.1",
"eslint": "^8.57.1",
"eslint-config-oclif": "^6.0.128",
"eslint-config-oclif": "^6.0.137",
"eslint-config-oclif-typescript": "^3.1.14",
"fancy-test": "3.0.16",
"mocha": "^10.8.2",
"nyc": "^15.1.0",
"oclif": "^4.22.61",
"oclif": "^4.22.77",
"shx": "^0.4.0",
"ts-node": "^10.9.2",
"tslib": "^2.8.1",
Expand Down
1 change: 1 addition & 0 deletions test/helpers/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ process.env.NODE_ENV = 'development'

global.oclif = global.oclif || {}
global.oclif.columns = 80
global.commonMock = require(path.join(__dirname, '../unit/mock/common.mock.json'))
2 changes: 1 addition & 1 deletion test/unit/commands/app/create.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { runCommand } from "@oclif/test";
import { cliux, configHandler } from "@contentstack/cli-utilities";
import messages from "../../../../src/messages";
import config from "../../../../src/config";
import * as mock from "../../mock/common.mock.json";
const mock = (global as any).commonMock;
import manifestData from "../../../../src/config/manifest.json";
import orgManifestData from "../../../unit/config/org_manifest.json";
import { getDeveloperHubUrl } from "../../../../src/util/inquirer";
Expand Down
8 changes: 5 additions & 3 deletions test/unit/commands/app/delete.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { expect } from "chai";
import { runCommand } from "@oclif/test";
import { cliux, configHandler } from "@contentstack/cli-utilities";
import sinon from "sinon";
import * as mock from "../../mock/common.mock.json";
const mock = (global as any).commonMock;
import messages, { $t } from "../../../../src/messages";
import { getDeveloperHubUrl } from "../../../../src/util/inquirer";
import nock from "nock";
Expand Down Expand Up @@ -105,8 +105,10 @@ describe("app:delete", () => {
});

it("should throw an error while deleting the app", async () => {
const { stdout } = await runCommand(["app:delete"]);
expect(stdout).to.contain(messages.CONTACT_SUPPORT);
const { stdout, stderr } = await runCommand(["app:delete"]);
const output = stdout + stderr;
// Error is logged by fetchAppInstallations catch and/or delete command
expect(output).to.match(/Some error occurred while fetching app installations|Contact the support team for help/);
});
});
});
Loading