@trackunit/react-test-setup 1.8.11 → 1.8.13
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 -1
- package/src/setupTimeAndLanguage.d.ts +1 -2
package/index.cjs.js
CHANGED
|
@@ -577,8 +577,7 @@ const setupTimeZone = () => {
|
|
|
577
577
|
* This function configures multiple aspects of the testing environment:
|
|
578
578
|
* 1. Sets a fixed time zone using setupTimeZone()
|
|
579
579
|
* 2. Disables React Spring animations for faster, deterministic tests
|
|
580
|
-
* 3.
|
|
581
|
-
* 4. Overrides setTimeout and setInterval to execute immediately (0ms delay)
|
|
580
|
+
* 3. Overrides setTimeout and setInterval to execute immediately (0ms delay)
|
|
582
581
|
*
|
|
583
582
|
* These changes make tests faster and more predictable by eliminating real-time
|
|
584
583
|
* delays, animations, and time zone dependencies that could cause flaky tests.
|
|
@@ -594,10 +593,6 @@ const setupTimeAndLanguage = () => {
|
|
|
594
593
|
web.Globals.assign({
|
|
595
594
|
skipAnimation: true,
|
|
596
595
|
});
|
|
597
|
-
jest.mock("@trackunit/react-components", () => ({
|
|
598
|
-
...jest.requireActual("@trackunit/react-components"),
|
|
599
|
-
useDebounce: (value) => value,
|
|
600
|
-
}));
|
|
601
596
|
const globalSetTimeout = global.setTimeout;
|
|
602
597
|
global.ORG_setTimeout = globalSetTimeout;
|
|
603
598
|
const globalSetInterval = global.setInterval;
|
package/index.esm.js
CHANGED
|
@@ -556,8 +556,7 @@ const setupTimeZone = () => {
|
|
|
556
556
|
* This function configures multiple aspects of the testing environment:
|
|
557
557
|
* 1. Sets a fixed time zone using setupTimeZone()
|
|
558
558
|
* 2. Disables React Spring animations for faster, deterministic tests
|
|
559
|
-
* 3.
|
|
560
|
-
* 4. Overrides setTimeout and setInterval to execute immediately (0ms delay)
|
|
559
|
+
* 3. Overrides setTimeout and setInterval to execute immediately (0ms delay)
|
|
561
560
|
*
|
|
562
561
|
* These changes make tests faster and more predictable by eliminating real-time
|
|
563
562
|
* delays, animations, and time zone dependencies that could cause flaky tests.
|
|
@@ -573,10 +572,6 @@ const setupTimeAndLanguage = () => {
|
|
|
573
572
|
Globals.assign({
|
|
574
573
|
skipAnimation: true,
|
|
575
574
|
});
|
|
576
|
-
jest.mock("@trackunit/react-components", () => ({
|
|
577
|
-
...jest.requireActual("@trackunit/react-components"),
|
|
578
|
-
useDebounce: (value) => value,
|
|
579
|
-
}));
|
|
580
575
|
const globalSetTimeout = global.setTimeout;
|
|
581
576
|
global.ORG_setTimeout = globalSetTimeout;
|
|
582
577
|
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.8.
|
|
4
|
+
"version": "1.8.13",
|
|
5
5
|
"repository": "https://github.com/Trackunit/manager",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
7
7
|
"engines": {
|
|
@@ -18,8 +18,7 @@ export declare const setupTimeZone: () => void;
|
|
|
18
18
|
* This function configures multiple aspects of the testing environment:
|
|
19
19
|
* 1. Sets a fixed time zone using setupTimeZone()
|
|
20
20
|
* 2. Disables React Spring animations for faster, deterministic tests
|
|
21
|
-
* 3.
|
|
22
|
-
* 4. Overrides setTimeout and setInterval to execute immediately (0ms delay)
|
|
21
|
+
* 3. Overrides setTimeout and setInterval to execute immediately (0ms delay)
|
|
23
22
|
*
|
|
24
23
|
* These changes make tests faster and more predictable by eliminating real-time
|
|
25
24
|
* delays, animations, and time zone dependencies that could cause flaky tests.
|