@embeddable.com/init 0.1.21 → 0.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +15 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -43,6 +43,19 @@ npm run build
43
43
  npm run dev
44
44
  ```
45
45
 
46
+ ### Run tests
47
+
48
+ ```bash
49
+ npm test
50
+ ```
51
+
52
+ The test suite covers:
53
+ - User cancellation at each prompt stage
54
+ - Error handling (network failures, npm install failures, build/push failures)
55
+ - Happy path flows for both US and EU regions
56
+ - Non-fatal warnings (git init failure, config update issues)
57
+ - Cleanup behavior on failure
58
+
46
59
  ### Test locally
47
60
 
48
61
  After building, you can test the CLI locally:
@@ -77,6 +90,8 @@ npm view @embeddable.com/init
77
90
  ```
78
91
  ├── src/
79
92
  │ └── index.ts # Main CLI application
93
+ ├── test/
94
+ │ └── index.test.ts # Test suite
80
95
  ├── dist/ # Compiled output (generated)
81
96
  ├── package.json # Package configuration
82
97
  ├── tsconfig.json # TypeScript configuration
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embeddable.com/init",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "CLI tool for Embeddable",
5
5
  "type": "module",
6
6
  "bin": {