@bonsae/nrg 0.18.1 → 0.18.2
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 +10 -2
- package/package.json +14 -2
package/README.md
CHANGED
|
@@ -145,13 +145,21 @@ See the [consumer template](https://github.com/AllanOricil/node-red-vue-template
|
|
|
145
145
|
|
|
146
146
|
## Testing
|
|
147
147
|
|
|
148
|
-
NRG provides four test libraries and bundles
|
|
148
|
+
NRG provides four test libraries and bundles most test infrastructure as direct dependencies. Install `vitest` plus any optional peer dependencies you need:
|
|
149
149
|
|
|
150
150
|
```bash
|
|
151
151
|
pnpm add -D vitest
|
|
152
152
|
```
|
|
153
153
|
|
|
154
|
-
|
|
154
|
+
Optional peer dependencies:
|
|
155
|
+
|
|
156
|
+
| Package | When to install |
|
|
157
|
+
| --- | --- |
|
|
158
|
+
| `@vitest/browser-playwright` | Component tests (Playwright browser provider for Vitest) |
|
|
159
|
+
| `playwright` | Component tests or E2E tests (direct `import` in test files) |
|
|
160
|
+
| `vitest-browser-vue` | Component tests (`render` helper for Vue components) |
|
|
161
|
+
| `@vitest/coverage-v8` | Coverage with `--coverage` (V8 provider) |
|
|
162
|
+
| `@vitest/coverage-istanbul` | Coverage with `--coverage` (Istanbul provider) |
|
|
155
163
|
|
|
156
164
|
- `@bonsae/nrg/test/server/unit` — server-side unit tests
|
|
157
165
|
- `@bonsae/nrg/test/client/unit` — client-side unit tests (TypeScript logic)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bonsae/nrg",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.2",
|
|
4
4
|
"description": "NRG framework — build Node-RED nodes with Vue 3, TypeScript, and JSON Schema",
|
|
5
5
|
"author": "Allan Oricil <allanoricil@duck.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -81,7 +81,10 @@
|
|
|
81
81
|
"vitest": "^4.0.0",
|
|
82
82
|
"vue": "^3.5.14",
|
|
83
83
|
"@vitest/coverage-istanbul": "^4.0.0",
|
|
84
|
-
"@vitest/coverage-v8": "^4.0.0"
|
|
84
|
+
"@vitest/coverage-v8": "^4.0.0",
|
|
85
|
+
"@vitest/browser-playwright": "^4.0.0",
|
|
86
|
+
"playwright": "^1.50.0",
|
|
87
|
+
"vitest-browser-vue": "^2.0.0"
|
|
85
88
|
},
|
|
86
89
|
"peerDependenciesMeta": {
|
|
87
90
|
"@vitest/coverage-istanbul": {
|
|
@@ -89,6 +92,15 @@
|
|
|
89
92
|
},
|
|
90
93
|
"@vitest/coverage-v8": {
|
|
91
94
|
"optional": true
|
|
95
|
+
},
|
|
96
|
+
"@vitest/browser-playwright": {
|
|
97
|
+
"optional": true
|
|
98
|
+
},
|
|
99
|
+
"playwright": {
|
|
100
|
+
"optional": true
|
|
101
|
+
},
|
|
102
|
+
"vitest-browser-vue": {
|
|
103
|
+
"optional": true
|
|
92
104
|
}
|
|
93
105
|
},
|
|
94
106
|
"dependencies": {
|