Skip to content

Commit b16e439

Browse files
Merge pull request #459 from contentstack/development
DX | 16-02-2026 | Release dev -> stage
2 parents 99f879a + d6ee805 commit b16e439

File tree

13 files changed

+1641
-4279
lines changed

13 files changed

+1641
-4279
lines changed

package-lock.json

Lines changed: 1263 additions & 4061 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@contentstack/apps-cli",
3-
"version": "1.6.3",
3+
"version": "1.6.4",
44
"description": "App ClI",
55
"author": "Contentstack CLI",
66
"homepage": "https://github.com/contentstack/contentstack-apps-cli",
@@ -21,37 +21,37 @@
2121
],
2222
"dependencies": {
2323
"@apollo/client": "^3.14.0",
24-
"@contentstack/cli-command": "^1.7.0",
25-
"@contentstack/cli-launch": "^1.9.4",
26-
"@contentstack/cli-utilities": "^1.14.4",
24+
"@contentstack/cli-command": "^1.7.2",
25+
"@contentstack/cli-launch": "^1.9.6",
26+
"@contentstack/cli-utilities": "^1.17.1",
2727
"adm-zip": "^0.5.16",
2828
"chalk": "^4.1.2",
29-
"lodash": "^4.17.21",
29+
"lodash": "^4.17.23",
3030
"shelljs": "^0.10.0",
3131
"tmp": "^0.2.5",
3232
"winston": "^3.19.0"
3333
},
3434
"devDependencies": {
35-
"@oclif/test": "^4.1.15",
35+
"@oclif/test": "^4.1.16",
3636
"@types/adm-zip": "^0.5.7",
3737
"@types/chai": "^4.3.20",
38-
"@types/lodash": "^4.17.21",
38+
"@types/lodash": "^4.17.23",
3939
"@types/mocha": "^10.0.10",
40-
"@types/node": "^20.19.27",
41-
"@types/shelljs": "^0.8.17",
40+
"@types/node": "^20.19.33",
41+
"@types/shelljs": "^0.10.0",
4242
"@types/tmp": "^0.2.6",
4343
"@typescript-eslint/eslint-plugin": "^8.50.1",
4444
"@typescript-eslint/parser": "^8.50.1",
45-
"axios": "^1.13.2",
45+
"axios": "^1.13.5",
4646
"chai": "^4.5.0",
4747
"dotenv": "^16.6.1",
4848
"eslint": "^8.57.1",
49-
"eslint-config-oclif": "^6.0.128",
49+
"eslint-config-oclif": "^6.0.137",
5050
"eslint-config-oclif-typescript": "^3.1.14",
5151
"fancy-test": "3.0.16",
5252
"mocha": "^10.8.2",
5353
"nyc": "^15.1.0",
54-
"oclif": "^4.22.61",
54+
"oclif": "^4.22.77",
5555
"shx": "^0.4.0",
5656
"ts-node": "^10.9.2",
5757
"tslib": "^2.8.1",

test/helpers/init.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ process.env.NODE_ENV = 'development'
44

55
global.oclif = global.oclif || {}
66
global.oclif.columns = 80
7+
global.commonMock = require(path.join(__dirname, '../unit/mock/common.mock.json'))

test/unit/commands/app/create.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { runCommand } from "@oclif/test";
1010
import { cliux, configHandler } from "@contentstack/cli-utilities";
1111
import messages from "../../../../src/messages";
1212
import config from "../../../../src/config";
13-
import * as mock from "../../mock/common.mock.json";
13+
const mock = (global as any).commonMock;
1414
import manifestData from "../../../../src/config/manifest.json";
1515
import orgManifestData from "../../../unit/config/org_manifest.json";
1616
import { getDeveloperHubUrl } from "../../../../src/util/inquirer";

test/unit/commands/app/delete.test.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { expect } from "chai";
22
import { runCommand } from "@oclif/test";
33
import { cliux, configHandler } from "@contentstack/cli-utilities";
44
import sinon from "sinon";
5-
import * as mock from "../../mock/common.mock.json";
5+
const mock = (global as any).commonMock;
66
import messages, { $t } from "../../../../src/messages";
77
import { getDeveloperHubUrl } from "../../../../src/util/inquirer";
88
import nock from "nock";
@@ -105,8 +105,10 @@ describe("app:delete", () => {
105105
});
106106

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

0 commit comments

Comments
 (0)