@rstest/browser-react 0.7.9 → 0.8.0

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 (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +2 -2
  3. package/package.json +13 -13
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023-present ByteDance, Inc. and its affiliates.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @rstest/browser-react
2
2
 
3
- React component testing utilities for [Rstest](https://rstest.dev) browser mode.
3
+ React component testing utilities for [Rstest](https://rstest.dev) browser mode (experimental).
4
4
 
5
5
  This package provides `render` and `renderHook` functions for testing React components in a real browser environment. Tests run in an actual browser rather than a simulated DOM like jsdom.
6
6
 
@@ -261,7 +261,7 @@ interface RenderConfiguration {
261
261
  ## Compatibility
262
262
 
263
263
  - React 17, 18, and 19
264
- - Rstest browser mode
264
+ - Rstest browser mode (experimental)
265
265
  - Node.js >= 18.12.0
266
266
 
267
267
  ## License
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rstest/browser-react",
3
- "version": "0.7.9",
3
+ "version": "0.8.0",
4
4
  "type": "module",
5
5
  "description": "React component testing support for Rstest browser mode",
6
6
  "license": "MIT",
@@ -22,26 +22,20 @@
22
22
  "files": [
23
23
  "dist"
24
24
  ],
25
- "scripts": {
26
- "build": "rslib build",
27
- "dev": "cross-env SOURCEMAP=true rslib build --watch",
28
- "typecheck": "tsc --noEmit",
29
- "test": "rstest"
30
- },
31
25
  "peerDependencies": {
32
- "@rstest/core": "workspace:^",
33
26
  "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
34
- "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
27
+ "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
28
+ "@rstest/core": "^0.8.0"
35
29
  },
36
30
  "devDependencies": {
37
31
  "@rslib/core": "^0.19.0",
38
- "@rstest/core": "workspace:*",
39
- "@rstest/tsconfig": "workspace:*",
40
32
  "@types/react": "^19.2.7",
41
33
  "@types/react-dom": "^19.2.3",
42
34
  "react": "^19.2.3",
43
35
  "react-dom": "^19.2.3",
44
- "typescript": "^5.9.3"
36
+ "typescript": "^5.9.3",
37
+ "@rstest/core": "0.8.0",
38
+ "@rstest/tsconfig": "0.0.1"
45
39
  },
46
40
  "keywords": [
47
41
  "rstest",
@@ -64,5 +58,11 @@
64
58
  "publishConfig": {
65
59
  "access": "public",
66
60
  "registry": "https://registry.npmjs.org/"
61
+ },
62
+ "scripts": {
63
+ "build": "rslib build",
64
+ "dev": "cross-env SOURCEMAP=true rslib build --watch",
65
+ "typecheck": "tsc --noEmit",
66
+ "test": "rstest"
67
67
  }
68
- }
68
+ }