twd-cli 1.0.4 → 1.0.6

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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## <small>1.0.5 (2025-12-03)</small>
2
+
3
+ * chore: update dependencies ([4cf3e77](https://github.com/BRIKEV/twd-cli/commit/4cf3e77))
4
+
1
5
  ## <small>1.0.4 (2025-11-26)</small>
2
6
 
3
7
  * fix: better log errors ([25319ca](https://github.com/BRIKEV/twd-cli/commit/25319ca))
package/README.md CHANGED
@@ -64,19 +64,30 @@ Create a `twd.config.json` file in your project root to customize settings:
64
64
 
65
65
  ## CI/CD Integration
66
66
 
67
- The CLI exits with code 1 if any tests fail, making it perfect for CI/CD pipelines:
67
+ The CLI exits with code 1 if any tests fail, making it perfect for CI/CD pipelines.
68
+ Puppeteer 24+ no longer auto-downloads Chrome, so make sure you install the browser on each runner (or restore it from a cache) before launching the tests.
68
69
 
69
70
  ```yaml
70
71
  # Example GitHub Actions workflow
71
- - name: Run TWD Tests
72
+ - name: Install dependencies
73
+ run: npm ci
74
+
75
+ - name: Cache Puppeteer browsers
76
+ uses: actions/cache@v4
77
+ with:
78
+ path: ~/.cache/puppeteer
79
+ key: ${{ runner.os }}-puppeteer-${{ hashFiles('package-lock.json') }}
80
+ restore-keys: |
81
+ ${{ runner.os }}-puppeteer-
82
+
83
+ - name: Install Chrome for Puppeteer
84
+ run: npx puppeteer browsers install chrome
85
+
86
+ - name: Run TWD tests
72
87
  run: npx twd-cli run
73
88
  ```
74
89
 
75
90
  ## Requirements
76
91
 
77
- - Node.js >= 18.0.0
92
+ - Node.js >= 20.19.x
78
93
  - A running development server with TWD tests
79
-
80
- ## License
81
-
82
- ISC
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "twd-cli",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "CLI tool for running TWD tests with Puppeteer",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -23,15 +23,15 @@
23
23
  "author": "",
24
24
  "license": "ISC",
25
25
  "dependencies": {
26
- "puppeteer": "^24.31.0",
27
- "twd-js": "^1.2.0"
26
+ "puppeteer": "^24.32.1",
27
+ "twd-js": "^1.3.1"
28
28
  },
29
29
  "engines": {
30
30
  "node": ">=18.0.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@vitest/coverage-v8": "^4.0.13",
33
+ "@vitest/coverage-v8": "^4.0.15",
34
34
  "conventional-changelog": "^7.1.1",
35
- "vitest": "^4.0.13"
35
+ "vitest": "^4.0.15"
36
36
  }
37
37
  }