@trackunit/react-vite-test-setup 0.0.81 → 0.0.82
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
|
@@ -10,7 +10,6 @@ var util = require('util');
|
|
|
10
10
|
var react$1 = require('react');
|
|
11
11
|
var reactI18next = require('react-i18next');
|
|
12
12
|
var polyfill = require('@js-temporal/polyfill');
|
|
13
|
-
var web = require('@react-spring/web');
|
|
14
13
|
var webStreamsPolyfill = require('web-streams-polyfill');
|
|
15
14
|
|
|
16
15
|
function _interopNamespaceDefault(e) {
|
|
@@ -1216,8 +1215,7 @@ const setupTimeZone = () => {
|
|
|
1216
1215
|
*
|
|
1217
1216
|
* This function configures multiple aspects of the testing environment:
|
|
1218
1217
|
* 1. Sets a fixed time zone using setupTimeZone()
|
|
1219
|
-
* 2.
|
|
1220
|
-
* 3. Overrides setTimeout and setInterval to execute immediately (0ms delay)
|
|
1218
|
+
* 2. Overrides setTimeout and setInterval to execute immediately (0ms delay)
|
|
1221
1219
|
*
|
|
1222
1220
|
* These changes make tests faster and more predictable by eliminating real-time
|
|
1223
1221
|
* delays, animations, and time zone dependencies that could cause flaky tests.
|
|
@@ -1230,9 +1228,6 @@ const setupTimeZone = () => {
|
|
|
1230
1228
|
*/
|
|
1231
1229
|
const setupTimeAndLanguage = () => {
|
|
1232
1230
|
setupTimeZone();
|
|
1233
|
-
web.Globals.assign({
|
|
1234
|
-
skipAnimation: true,
|
|
1235
|
-
});
|
|
1236
1231
|
const globalSetTimeout = global.setTimeout;
|
|
1237
1232
|
global.ORG_setTimeout = globalSetTimeout;
|
|
1238
1233
|
const globalSetInterval = global.setInterval;
|
package/index.esm.js
CHANGED
|
@@ -8,7 +8,6 @@ import { TextEncoder, TextDecoder } from 'util';
|
|
|
8
8
|
import { isValidElement, cloneElement, useRef } from 'react';
|
|
9
9
|
import * as reactI18next from 'react-i18next';
|
|
10
10
|
import { Temporal } from '@js-temporal/polyfill';
|
|
11
|
-
import { Globals } from '@react-spring/web';
|
|
12
11
|
import { WritableStream, TransformStream } from 'web-streams-polyfill';
|
|
13
12
|
|
|
14
13
|
// Tracks the decorators we've installed so repeated `setupReactTestingLibrary()`
|
|
@@ -1195,8 +1194,7 @@ const setupTimeZone = () => {
|
|
|
1195
1194
|
*
|
|
1196
1195
|
* This function configures multiple aspects of the testing environment:
|
|
1197
1196
|
* 1. Sets a fixed time zone using setupTimeZone()
|
|
1198
|
-
* 2.
|
|
1199
|
-
* 3. Overrides setTimeout and setInterval to execute immediately (0ms delay)
|
|
1197
|
+
* 2. Overrides setTimeout and setInterval to execute immediately (0ms delay)
|
|
1200
1198
|
*
|
|
1201
1199
|
* These changes make tests faster and more predictable by eliminating real-time
|
|
1202
1200
|
* delays, animations, and time zone dependencies that could cause flaky tests.
|
|
@@ -1209,9 +1207,6 @@ const setupTimeZone = () => {
|
|
|
1209
1207
|
*/
|
|
1210
1208
|
const setupTimeAndLanguage = () => {
|
|
1211
1209
|
setupTimeZone();
|
|
1212
|
-
Globals.assign({
|
|
1213
|
-
skipAnimation: true,
|
|
1214
|
-
});
|
|
1215
1210
|
const globalSetTimeout = global.setTimeout;
|
|
1216
1211
|
global.ORG_setTimeout = globalSetTimeout;
|
|
1217
1212
|
const globalSetInterval = global.setInterval;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-vite-test-setup",
|
|
3
3
|
"description": "Test setup utilities for React applications",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.82",
|
|
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
|
"@tanstack/react-virtual": "^3.14.3",
|
|
27
26
|
"@testing-library/jest-dom": "^6.9.1",
|
|
28
27
|
"@testing-library/react": "16.2.0",
|
|
@@ -20,8 +20,7 @@ export declare const setupTimeZone: () => void;
|
|
|
20
20
|
*
|
|
21
21
|
* This function configures multiple aspects of the testing environment:
|
|
22
22
|
* 1. Sets a fixed time zone using setupTimeZone()
|
|
23
|
-
* 2.
|
|
24
|
-
* 3. Overrides setTimeout and setInterval to execute immediately (0ms delay)
|
|
23
|
+
* 2. Overrides setTimeout and setInterval to execute immediately (0ms delay)
|
|
25
24
|
*
|
|
26
25
|
* These changes make tests faster and more predictable by eliminating real-time
|
|
27
26
|
* delays, animations, and time zone dependencies that could cause flaky tests.
|