Skip to content
Merged
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
4 changes: 4 additions & 0 deletions .talismanrc
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ fileignoreconfig:
checksum: 7b984d292a534f9d075d801de2aeff802b2832bc5e2efadf8613a7059f4317fc
- filename: packages/contentstack-import/test/unit/import/modules/labels.test.ts
checksum: 46fe0d1602ab386f7eaee9839bc376b98ab8d4262f823784eda9cfa2bf893758
- filename: packages/contentstack-export/test/unit/export/modules/assets.test.ts
checksum: 192c515e32db3f5d8c4f47d57aa65597b41167f83e70ec9592e4deb88dc47802
- filename: packages/contentstack-export/test/unit/export/modules/base-class.test.ts
checksum: c7f9801faeb300f8bd97534ac72441bde5aac625dd4beaf5531945d14d9d4db0
- filename: packages/contentstack-import/test/unit/import/modules/environments.test.ts
checksum: 58165d06d92f55be8abb04c4ecc47df775a1c47f1cee529f1be5277187700f97
version: "1.0"
8 changes: 2 additions & 6 deletions packages/contentstack-export/.mocharc.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{
"require": [
"test/helpers/init.js",
"ts-node/register",
"source-map-support/register"
],
"require": ["test/helpers/init.js", "ts-node/register", "source-map-support/register"],
"watch-extensions": [
"ts"
],
"recursive": true,
"timeout": 5000
}
}
9 changes: 8 additions & 1 deletion packages/contentstack-export/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,21 @@
"@oclif/plugin-help": "^6.2.28",
"@oclif/test": "^4.1.13",
"@types/big-json": "^3.2.5",
"@types/chai": "^4.3.11",
"@types/mkdirp": "^1.0.2",
"@types/mocha": "^10.0.6",
"@types/progress-stream": "^2.0.5",
"@types/sinon": "^17.0.2",
"chai": "^4.4.1",
"dotenv": "^16.5.0",
"dotenv-expand": "^9.0.0",
"eslint": "^8.57.1",
"eslint-config-oclif": "^6.0.68",
"mocha": "10.8.2",
"nyc": "^15.1.0",
"oclif": "^4.17.46",
"sinon": "^17.0.1",
"source-map-support": "^0.5.21",
"ts-node": "^10.9.2",
"typescript": "^4.9.5"
},
Expand All @@ -54,7 +60,8 @@
"format": "eslint src/**/*.ts --fix",
"test:integration": "INTEGRATION_TEST=true mocha --config ./test/.mocharc.js --forbid-only \"test/run.test.js\"",
"test:integration:report": "INTEGRATION_TEST=true nyc --extension .js mocha --forbid-only \"test/run.test.js\"",
"test:unit": "mocha --forbid-only \"test/unit/*.test.ts\""
"test:unit": "mocha --forbid-only \"test/unit/**/*.test.ts\"",
"test:unit:report": "nyc --reporter=text --extension .ts mocha --forbid-only \"test/unit/**/*.test.ts\""
},
"engines": {
"node": ">=14.0.0"
Expand Down
5 changes: 5 additions & 0 deletions packages/contentstack-export/test/helpers/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ process.env.NODE_ENV = 'development'

global.oclif = global.oclif || {}
global.oclif.columns = 80

// Minimal test helper for unit tests
module.exports = {
// Basic test utilities can be added here
}
8 changes: 3 additions & 5 deletions packages/contentstack-export/test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
"extends": "../tsconfig",
"compilerOptions": {
"noEmit": true,
"resolveJsonModule": true
},
"references": [
{"path": "../"}
]
"resolveJsonModule": true,
"esModuleInterop": true
}
}
Loading
Loading