From aa016846658e1802065390aed13e27a73e83e127 Mon Sep 17 00:00:00 2001 From: raj pandey Date: Thu, 23 Nov 2023 18:41:31 +0530 Subject: [PATCH] Release fixes --- package-lock.json | 10 +++------- .../contentstack-audit/test/unit/base-command.test.ts | 2 +- packages/contentstack-dev-dependencies/package.json | 5 +++-- pnpm-lock.yaml | 6 +++--- 4 files changed, 10 insertions(+), 13 deletions(-) diff --git a/package-lock.json b/package-lock.json index a8c8bcaa2c..40433b5333 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2153,7 +2153,6 @@ "version": "2.3.30", "resolved": "https://registry.npmjs.org/@oclif/test/-/test-2.3.30.tgz", "integrity": "sha512-zuOv23wiF+H7cRGMjcKx/91qhdcNMcZnr+1TCpbyDeQBIvRs/nGWyuwfrmoF2fXs+HtNZsNFvwbjg7Ue5JfAug==", - "dev": true, "dependencies": { "@oclif/core": "^2.9.3", "fancy-test": "^2.0.29" @@ -2166,7 +2165,6 @@ "version": "2.0.30", "resolved": "https://registry.npmjs.org/fancy-test/-/fancy-test-2.0.30.tgz", "integrity": "sha512-bDQnAXYYODKwjb/6VEwAovEN0uJ1iRMTahEqOpQCRxIX7rIqoFHCy0LEqWYAU3kVw4ERgK4HQSn6GISEA1ipxg==", - "dev": true, "dependencies": { "@types/chai": "*", "@types/lodash": "*", @@ -24056,12 +24054,13 @@ "license": "MIT", "dependencies": { "@oclif/core": "^2.9.3", + "@oclif/test": "^2.0.3", + "fancy-test": "^2.0.0", "lodash": "^4.17.21" }, "devDependencies": { "@types/node": "^14.14.32", "eslint": "^7.32.0", - "fancy-test": "^2.0.0", "mocha": "10.1.0", "ts-node": "^10.9.1", "tslib": "^2.5.0", @@ -24256,7 +24255,6 @@ "version": "2.0.30", "resolved": "https://registry.npmjs.org/fancy-test/-/fancy-test-2.0.30.tgz", "integrity": "sha512-bDQnAXYYODKwjb/6VEwAovEN0uJ1iRMTahEqOpQCRxIX7rIqoFHCy0LEqWYAU3kVw4ERgK4HQSn6GISEA1ipxg==", - "dev": true, "dependencies": { "@types/chai": "*", "@types/lodash": "*", @@ -28698,6 +28696,7 @@ "version": "file:packages/contentstack-dev-dependencies", "requires": { "@oclif/core": "^2.9.3", + "@oclif/test": "^2.0.3", "@types/node": "^14.14.32", "eslint": "^7.32.0", "fancy-test": "^2.0.0", @@ -28857,7 +28856,6 @@ "version": "2.0.30", "resolved": "https://registry.npmjs.org/fancy-test/-/fancy-test-2.0.30.tgz", "integrity": "sha512-bDQnAXYYODKwjb/6VEwAovEN0uJ1iRMTahEqOpQCRxIX7rIqoFHCy0LEqWYAU3kVw4ERgK4HQSn6GISEA1ipxg==", - "dev": true, "requires": { "@types/chai": "*", "@types/lodash": "*", @@ -31156,7 +31154,6 @@ "version": "2.3.30", "resolved": "https://registry.npmjs.org/@oclif/test/-/test-2.3.30.tgz", "integrity": "sha512-zuOv23wiF+H7cRGMjcKx/91qhdcNMcZnr+1TCpbyDeQBIvRs/nGWyuwfrmoF2fXs+HtNZsNFvwbjg7Ue5JfAug==", - "dev": true, "requires": { "@oclif/core": "^2.9.3", "fancy-test": "^2.0.29" @@ -31166,7 +31163,6 @@ "version": "2.0.30", "resolved": "https://registry.npmjs.org/fancy-test/-/fancy-test-2.0.30.tgz", "integrity": "sha512-bDQnAXYYODKwjb/6VEwAovEN0uJ1iRMTahEqOpQCRxIX7rIqoFHCy0LEqWYAU3kVw4ERgK4HQSn6GISEA1ipxg==", - "dev": true, "requires": { "@types/chai": "*", "@types/lodash": "*", diff --git a/packages/contentstack-audit/test/unit/base-command.test.ts b/packages/contentstack-audit/test/unit/base-command.test.ts index f94840c4b5..5a74c30c44 100644 --- a/packages/contentstack-audit/test/unit/base-command.test.ts +++ b/packages/contentstack-audit/test/unit/base-command.test.ts @@ -59,7 +59,7 @@ describe('BaseCommand class', () => { const configPath = resolve(__dirname, 'mock', 'invalid-config.json'); await CMD.run([`--config=${configPath}`]); - expect(ctx.stdout).to.include('not valid JSON'); + expect(ctx.stdout).to.include('Unexpected token'); }); }); }); diff --git a/packages/contentstack-dev-dependencies/package.json b/packages/contentstack-dev-dependencies/package.json index 5a15353c80..c27e15bebe 100644 --- a/packages/contentstack-dev-dependencies/package.json +++ b/packages/contentstack-dev-dependencies/package.json @@ -22,12 +22,13 @@ "license": "MIT", "dependencies": { "@oclif/core": "^2.9.3", - "lodash": "^4.17.21" + "lodash": "^4.17.21", + "fancy-test": "^2.0.0", + "@oclif/test":"^2.0.3" }, "devDependencies": { "@types/node": "^14.14.32", "eslint": "^7.32.0", - "fancy-test": "^2.0.0", "mocha": "10.1.0", "ts-node": "^10.9.1", "tslib": "^2.5.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 177596546f..7a1bacda27 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -576,6 +576,7 @@ importers: packages/contentstack-dev-dependencies: specifiers: '@oclif/core': ^2.9.3 + '@oclif/test': ^2.0.3 '@types/node': ^14.14.32 eslint: ^7.32.0 fancy-test: ^2.0.0 @@ -586,11 +587,12 @@ importers: typescript: ^4.9.3 dependencies: '@oclif/core': 2.9.4_4qcp7qp4jxxdgb4qbxgwox4hwq + '@oclif/test': 2.3.31_4qcp7qp4jxxdgb4qbxgwox4hwq + fancy-test: 2.0.31 lodash: 4.17.21 devDependencies: '@types/node': 14.18.53 eslint: 7.32.0 - fancy-test: 2.0.31 mocha: 10.1.0 ts-node: 10.9.1_4qcp7qp4jxxdgb4qbxgwox4hwq tslib: 2.6.0 @@ -3157,7 +3159,6 @@ packages: - '@types/node' - supports-color - typescript - dev: true /@oclif/test/2.3.31_eyayto62fyd4eo5o5fvolpu7d4: resolution: {integrity: sha512-dTWCni+Zv9aSuzyamS95+GJaIub6EAI+CT+pA1MP10RZF54mF7CKaas7t8dvNvDp1Y194hi64cqe+cNwZlR5ng==} @@ -6808,7 +6809,6 @@ packages: stdout-stderr: 0.1.13 transitivePeerDependencies: - supports-color - dev: true /fast-csv/4.3.6: resolution: {integrity: sha512-2RNSpuwwsJGP0frGsOmTb9oUF+VkFSM4SyLTDgwf2ciHWTarN0lQTC+F2f/t5J9QjW+c65VFIAAu85GsvMIusw==}