@scenetest/checks-react 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +18 -0
  2. package/package.json +2 -2
package/README.md ADDED
@@ -0,0 +1,18 @@
1
+ # @scenetest/checks-react
2
+
3
+ React bindings for [Scenetest](https://github.com/scenetest/scenetest-js) inline assertions.
4
+
5
+ ```bash
6
+ npm install @scenetest/checks-react
7
+ ```
8
+
9
+ ```jsx
10
+ import { useCheck } from '@scenetest/checks-react'
11
+
12
+ function Cart({ items }) {
13
+ useCheck('cart has items', () => items.length > 0)
14
+ return <div>...</div>
15
+ }
16
+ ```
17
+
18
+ See the [monorepo](https://github.com/scenetest/scenetest-js) for full documentation.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scenetest/checks-react",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "React bindings for scenetest inline assertions",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -32,7 +32,7 @@
32
32
  "access": "public"
33
33
  },
34
34
  "dependencies": {
35
- "@scenetest/checks": "0.1.0"
35
+ "@scenetest/checks": "0.1.2"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "react": "^18.0.0 || ^19.0.0"