@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.
- package/README.md +15 -0
- 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
|