Skip to content

Commit 0fc0ff7

Browse files
authored
Merge pull request #2151 from contentstack/tests/DX-3587
Feat: Test setup for the Import Unit Test cases and import command Test
2 parents 2319fbb + 1d61afc commit 0fc0ff7

File tree

4 files changed

+546
-1
lines changed

4 files changed

+546
-1
lines changed

.talismanrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,6 @@ fileignoreconfig:
8787
checksum: 7db02c6f2627400b28fc96d505bf074d477080a45ba13943709d4845b6ca0908
8888
- filename: packages/contentstack-import/src/utils/backup-handler.ts
8989
checksum: 0a9accdafce01837166223ed00cd801e2ebb39a4ef952231f67232859a5beea8
90+
- filename: packages/contentstack-import/test/unit/commands/cm/stacks/import.test.ts
91+
checksum: 2a652b7b06b9e4d1bdae368137a683392861505df76021c96ac9066124fd050f
9092
version: "1.0"

packages/contentstack-import/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"lint": "eslint src/**/*.ts",
5858
"format": "eslint src/**/*.ts --fix",
5959
"test:integration": "mocha --forbid-only \"test/run.test.js\" --integration-test --timeout 60000",
60-
"test:unit": "mocha --forbid-only \"test/unit/*.test.ts\""
60+
"test:unit": "nyc --extension .ts mocha --forbid-only \"test/unit/**/*.test.ts\""
6161
},
6262
"engines": {
6363
"node": ">=14.0.0"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Minimal test helper for unit tests
2+
module.exports = {
3+
// Basic test utilities can be added here
4+
};

0 commit comments

Comments
 (0)