mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-15 10:14:36 +00:00
refactor(tests): Phase 6 - Update package.json with new test scripts
- Add comprehensive npm test scripts using mocha framework - Add test:npm, test:native, test:unit, test:integration scripts - Update main test script to run all test suites - Fix npm test issues - all 34 tests now passing - Use npx to run mocha without global installation
This commit is contained in:
1 parent
03a86160bb
commit
1b5d3e4825
4 files changed
+1228
-9
No files matched your search
+10
-1
@@ -45,10 +45,19 @@
|
||||
],
|
||||
"preferGlobal": true,
|
||||
"scripts": {
|
||||
"test": "bash tests/edge-cases.sh",
|
||||
"test": "npm run test:all",
|
||||
"test:all": "npm run test:unit && npm run test:integration && npm run test:npm",
|
||||
"test:unit": "npx mocha tests/unit/**/*.test.js --timeout 5000",
|
||||
"test:integration": "npx mocha tests/integration/**/*.test.js --timeout 5000",
|
||||
"test:npm": "npx mocha tests/npm/**/*.test.js --timeout 10000",
|
||||
"test:native": "bash tests/native/unix/edge-cases.sh",
|
||||
"test:edge-cases": "bash tests/edge-cases.sh",
|
||||
"prepublishOnly": "node scripts/sync-version.js",
|
||||
"prepack": "node scripts/sync-version.js",
|
||||
"prepare": "node scripts/check-executables.js",
|
||||
"postinstall": "node scripts/postinstall.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"mocha": "^11.7.5"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user