@octanejs/testing-library 0.1.59 → 0.1.61

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/package.json +3 -3
  2. package/src/index.ts +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/testing-library",
3
- "version": "0.1.59",
3
+ "version": "0.1.61",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "engines": {
@@ -41,12 +41,12 @@
41
41
  "@testing-library/dom": "^10.4.1"
42
42
  },
43
43
  "peerDependencies": {
44
- "octane": "^0.10.0"
44
+ "octane": "^0.11.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@testing-library/user-event": "^14.6.1",
48
48
  "esbuild": "^0.28.1",
49
- "octane": "0.10.0",
49
+ "octane": "0.11.0",
50
50
  "react": "19.2.7",
51
51
  "react-dom": "19.2.7",
52
52
  "semver": "7.8.5",
package/src/index.ts CHANGED
@@ -12,6 +12,12 @@ import { cleanup } from './pure';
12
12
  import { getIsOctaneActEnvironment, setOctaneActEnvironment } from './act-environment';
13
13
 
14
14
  type TestHook = (callback: () => void) => void;
15
+
16
+ // `process` is declared here rather than taken from @types/node: this module
17
+ // ships as source, so it compiles in the consumer's program, which a browser
18
+ // application builds without Node types.
19
+ declare const process: { env?: { RTL_SKIP_AUTO_CLEANUP?: string } };
20
+
15
21
  const globals = globalThis as {
16
22
  afterEach?: TestHook;
17
23
  teardown?: TestHook;