@trackunit/react-test-setup 1.10.79 → 1.10.80
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/index.cjs.js +1 -6
- package/index.esm.js +1 -6
- package/package.json +1 -2
- package/src/setupTimeAndLanguage.d.ts +1 -2
package/index.cjs.js
CHANGED
|
@@ -5,7 +5,6 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
5
5
|
require('@testing-library/jest-dom');
|
|
6
6
|
var react = require('@testing-library/react');
|
|
7
7
|
var polyfill = require('@js-temporal/polyfill');
|
|
8
|
-
var web = require('@react-spring/web');
|
|
9
8
|
var util = require('util');
|
|
10
9
|
var react$1 = require('react');
|
|
11
10
|
var reactI18next = require('react-i18next');
|
|
@@ -817,8 +816,7 @@ const setupTimeZone = () => {
|
|
|
817
816
|
*
|
|
818
817
|
* This function configures multiple aspects of the testing environment:
|
|
819
818
|
* 1. Sets a fixed time zone using setupTimeZone()
|
|
820
|
-
* 2.
|
|
821
|
-
* 3. Overrides setTimeout and setInterval to execute immediately (0ms delay)
|
|
819
|
+
* 2. Overrides setTimeout and setInterval to execute immediately (0ms delay)
|
|
822
820
|
*
|
|
823
821
|
* These changes make tests faster and more predictable by eliminating real-time
|
|
824
822
|
* delays, animations, and time zone dependencies that could cause flaky tests.
|
|
@@ -831,9 +829,6 @@ const setupTimeZone = () => {
|
|
|
831
829
|
*/
|
|
832
830
|
const setupTimeAndLanguage = () => {
|
|
833
831
|
setupTimeZone();
|
|
834
|
-
web.Globals.assign({
|
|
835
|
-
skipAnimation: true,
|
|
836
|
-
});
|
|
837
832
|
const globalSetTimeout = global.setTimeout;
|
|
838
833
|
global.ORG_setTimeout = globalSetTimeout;
|
|
839
834
|
const globalSetInterval = global.setInterval;
|
package/index.esm.js
CHANGED
|
@@ -3,7 +3,6 @@ import { jsx, Fragment } from 'react/jsx-runtime';
|
|
|
3
3
|
import '@testing-library/jest-dom';
|
|
4
4
|
import { cleanup, act } from '@testing-library/react';
|
|
5
5
|
import { Temporal } from '@js-temporal/polyfill';
|
|
6
|
-
import { Globals } from '@react-spring/web';
|
|
7
6
|
import { TextEncoder, TextDecoder } from 'util';
|
|
8
7
|
import { isValidElement, cloneElement } from 'react';
|
|
9
8
|
import * as reactI18next from 'react-i18next';
|
|
@@ -796,8 +795,7 @@ const setupTimeZone = () => {
|
|
|
796
795
|
*
|
|
797
796
|
* This function configures multiple aspects of the testing environment:
|
|
798
797
|
* 1. Sets a fixed time zone using setupTimeZone()
|
|
799
|
-
* 2.
|
|
800
|
-
* 3. Overrides setTimeout and setInterval to execute immediately (0ms delay)
|
|
798
|
+
* 2. Overrides setTimeout and setInterval to execute immediately (0ms delay)
|
|
801
799
|
*
|
|
802
800
|
* These changes make tests faster and more predictable by eliminating real-time
|
|
803
801
|
* delays, animations, and time zone dependencies that could cause flaky tests.
|
|
@@ -810,9 +808,6 @@ const setupTimeZone = () => {
|
|
|
810
808
|
*/
|
|
811
809
|
const setupTimeAndLanguage = () => {
|
|
812
810
|
setupTimeZone();
|
|
813
|
-
Globals.assign({
|
|
814
|
-
skipAnimation: true,
|
|
815
|
-
});
|
|
816
811
|
const globalSetTimeout = global.setTimeout;
|
|
817
812
|
global.ORG_setTimeout = globalSetTimeout;
|
|
818
813
|
const globalSetInterval = global.setInterval;
|
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.10.
|
|
4
|
+
"version": "1.10.80",
|
|
5
5
|
"repository": "https://github.com/Trackunit/manager",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
7
7
|
"engines": {
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@googlemaps/jest-mocks": "2.22.6",
|
|
24
24
|
"@js-temporal/polyfill": "^0.5.1",
|
|
25
|
-
"@react-spring/web": "9.7.5",
|
|
26
25
|
"@testing-library/jest-dom": "^6.9.1",
|
|
27
26
|
"@testing-library/react": "16.2.0",
|
|
28
27
|
"@vis.gl/react-google-maps": "^1.7.1",
|
|
@@ -17,8 +17,7 @@ export declare const setupTimeZone: () => void;
|
|
|
17
17
|
*
|
|
18
18
|
* This function configures multiple aspects of the testing environment:
|
|
19
19
|
* 1. Sets a fixed time zone using setupTimeZone()
|
|
20
|
-
* 2.
|
|
21
|
-
* 3. Overrides setTimeout and setInterval to execute immediately (0ms delay)
|
|
20
|
+
* 2. Overrides setTimeout and setInterval to execute immediately (0ms delay)
|
|
22
21
|
*
|
|
23
22
|
* These changes make tests faster and more predictable by eliminating real-time
|
|
24
23
|
* delays, animations, and time zone dependencies that could cause flaky tests.
|