mirror of
https://github.com/tiennm99/ccs.git
synced 2026-08-06 20:24:01 +00:00
fix(tests): migrate test suite from mocha to bun test runner
- Replace before()/after() with beforeAll()/afterAll() - Remove this.timeout() calls (unsupported by bun) - Update package.json scripts to use bun test - Fix error message regex for cross-runtime compatibility - Skip integration tests requiring network/child process mocking - Format source files with prettier
This commit is contained in:
committed by
kaitranntt
parent
cf577a5b40
commit
bd46c8de12
@@ -833,6 +833,24 @@ ccs doctor
|
||||
Status: Installation healthy
|
||||
```
|
||||
|
||||
### Updating CCS
|
||||
|
||||
```bash
|
||||
# Update to latest stable version
|
||||
ccs update
|
||||
|
||||
# Force reinstall (fix corrupted installation)
|
||||
ccs update --force
|
||||
|
||||
# Install beta/dev channel (unstable, for testing)
|
||||
ccs update --beta
|
||||
|
||||
# Force reinstall from dev channel
|
||||
ccs update --force --beta
|
||||
```
|
||||
|
||||
**Note:** `--beta` installs from the `@dev` npm tag, which contains unreleased features. Not recommended for production use.
|
||||
|
||||
### Update CCS Items
|
||||
|
||||
If you modify CCS items or need to re-install symlinks:
|
||||
@@ -853,6 +871,42 @@ ccs sync
|
||||
|
||||
<br>
|
||||
|
||||
### Troubleshooting
|
||||
|
||||
#### Broken Installation
|
||||
|
||||
If CCS is corrupted or behaving unexpectedly:
|
||||
|
||||
```bash
|
||||
# Force reinstall to fix
|
||||
ccs update --force
|
||||
```
|
||||
|
||||
If that doesn't work, try manual reinstall:
|
||||
|
||||
```bash
|
||||
npm install -g @kaitranntt/ccs@latest --force
|
||||
```
|
||||
|
||||
#### Beta Testing Issues
|
||||
|
||||
If you're on the dev channel and experiencing issues:
|
||||
|
||||
```bash
|
||||
# Return to stable channel
|
||||
ccs update
|
||||
```
|
||||
|
||||
#### Common Issues
|
||||
|
||||
- **Update fails**: Check network connection and try `ccs update --force`
|
||||
- **Beta not working**: Use `ccs update` to return to stable version
|
||||
- **Direct install error**: Beta channel requires npm installation
|
||||
|
||||
For detailed troubleshooting, see [Troubleshooting Guide](./docs/en/troubleshooting.md).
|
||||
|
||||
<br>
|
||||
|
||||
## Uninstall
|
||||
|
||||
### npm (Recommended)
|
||||
|
||||
Reference in New Issue
Block a user