@trackunit/react-test-setup 1.9.8 → 1.10.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/README.md +3 -3
  2. package/index.cjs.js +13 -13
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -19,7 +19,7 @@ You can choose between different levels of setup based on your needs:
19
19
  Use the `setupBasicMocks` function to set up only essential mocks without external library dependencies:
20
20
 
21
21
  ```javascript
22
- // In your jest setup file (e.g., jest.setup.js)
22
+ // In your vite setup file (e.g., vite.setup.js)
23
23
  import { setupBasicMocks } from '@trackunit/react-test-setup';
24
24
 
25
25
  setupBasicMocks();
@@ -32,7 +32,7 @@ This sets up Canvas, IntersectionObserver, MatchMedia, ResizeObserver, timers, a
32
32
  Use the `setupDefaultMocks` function to set up a balanced set of mocks that work for most React applications:
33
33
 
34
34
  ```javascript
35
- // In your jest setup file (e.g., jest.setup.js)
35
+ // In your vite setup file (e.g., vite.setup.js)
36
36
  import { setupDefaultMocks } from '@trackunit/react-test-setup';
37
37
 
38
38
  setupDefaultMocks();
@@ -45,7 +45,7 @@ This includes everything in `setupBasicMocks` plus React Testing Library and tra
45
45
  Use the `setupAllMocks` function to set up all available mocks in one call:
46
46
 
47
47
  ```javascript
48
- // In your jest setup file (e.g., jest.setup.js)
48
+ // In your vite setup file (e.g., vite.setup.js)
49
49
  import { setupAllMocks } from '@trackunit/react-test-setup';
50
50
 
51
51
  setupAllMocks();
package/index.cjs.js CHANGED
@@ -12,20 +12,20 @@ var reactI18next = require('react-i18next');
12
12
  var webStreamsPolyfill = require('web-streams-polyfill');
13
13
 
14
14
  function _interopNamespaceDefault(e) {
15
- var n = Object.create(null);
16
- if (e) {
17
- Object.keys(e).forEach(function (k) {
18
- if (k !== 'default') {
19
- var d = Object.getOwnPropertyDescriptor(e, k);
20
- Object.defineProperty(n, k, d.get ? d : {
21
- enumerable: true,
22
- get: function () { return e[k]; }
15
+ var n = Object.create(null);
16
+ if (e) {
17
+ Object.keys(e).forEach(function (k) {
18
+ if (k !== 'default') {
19
+ var d = Object.getOwnPropertyDescriptor(e, k);
20
+ Object.defineProperty(n, k, d.get ? d : {
21
+ enumerable: true,
22
+ get: function () { return e[k]; }
23
+ });
24
+ }
23
25
  });
24
- }
25
- });
26
- }
27
- n.default = e;
28
- return Object.freeze(n);
26
+ }
27
+ n.default = e;
28
+ return Object.freeze(n);
29
29
  }
30
30
 
31
31
  var reactI18next__namespace = /*#__PURE__*/_interopNamespaceDefault(reactI18next);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@trackunit/react-test-setup",
3
3
  "description": "Test setup utilities for React applications",
4
- "version": "1.9.8",
4
+ "version": "1.10.0",
5
5
  "repository": "https://github.com/Trackunit/manager",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",
7
7
  "engines": {
@@ -29,7 +29,7 @@
29
29
  "mapbox-gl": "^3.18.1",
30
30
  "jest": "30.0.5",
31
31
  "jest-canvas-mock": "^2.5.2",
32
- "jest-fail-on-console": "^3.1.2",
32
+ "jest-fail-on-console": "^3.1.0",
33
33
  "react-i18next": "^15.5.1",
34
34
  "react-virtualized-auto-sizer": "^1.0.20",
35
35
  "web-streams-polyfill": "^4.2.0"