@mui/internal-test-utils 2.0.18-canary.25 → 2.0.18-canary.27
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/LICENSE +1 -1
- package/README.md +0 -10
- package/createRenderer.d.mts +2 -1
- package/createRenderer.d.ts +2 -1
- package/describeConformance.d.mts +1 -1
- package/describeConformance.d.ts +1 -1
- package/package.json +2 -2
- package/setupVitest.d.mts +1 -1
- package/setupVitest.d.ts +1 -1
- package/setupVitest.js +2 -2
- package/setupVitest.mjs +2 -2
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -16,16 +16,6 @@ You can [read the Infra documentation here](./docs/README.md).
|
|
|
16
16
|
- Hosting: https://dashboard.render.com/web/srv-d5fq2j0gjchc73e9st5g
|
|
17
17
|
- [Docs](./apps/code-infra-dashboard/#readme)
|
|
18
18
|
|
|
19
|
-
### Tools Public
|
|
20
|
-
|
|
21
|
-
⚠️ Deprecated. Use **Frontend Public** instead.
|
|
22
|
-
|
|
23
|
-
- URL: [tools-public.mui.com](https://tools-public.mui.com/)
|
|
24
|
-
- Source: `/apps/tools-public/`
|
|
25
|
-
- Hosting: https://dashboard.render.com/web/srv-d08mooq4d50c73fso49g
|
|
26
|
-
- [Docs](./apps/tools-public/#readme)
|
|
27
|
-
- Internal public Toolpad apps that run the operations of MUI, built using https://github.com/mui/toolpad.
|
|
28
|
-
|
|
29
19
|
### MUI Internal
|
|
30
20
|
|
|
31
21
|
- URL: [mui-internal.netlify.app](https://mui-internal.netlify.app)
|
package/createRenderer.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { queries,
|
|
1
|
+
import { queries, fireEvent as rtlFireEvent } from '@testing-library/react/pure.js';
|
|
2
|
+
import type { RenderResult, Screen, RenderOptions as TestingLibraryRenderOptions } from '@testing-library/react/pure.js';
|
|
2
3
|
import { userEvent } from '@testing-library/user-event';
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
import { vi } from 'vitest';
|
package/createRenderer.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { queries,
|
|
1
|
+
import { queries, fireEvent as rtlFireEvent } from '@testing-library/react/pure.js';
|
|
2
|
+
import type { RenderResult, Screen, RenderOptions as TestingLibraryRenderOptions } from '@testing-library/react/pure.js';
|
|
2
3
|
import { userEvent } from '@testing-library/user-event';
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
import { vi } from 'vitest';
|
package/describeConformance.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/internal-test-utils",
|
|
3
|
-
"version": "2.0.18-canary.
|
|
3
|
+
"version": "2.0.18-canary.27",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "Utilities for MUI tests. This is an internal package not meant for general use.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -160,5 +160,5 @@
|
|
|
160
160
|
},
|
|
161
161
|
"main": "./index.js",
|
|
162
162
|
"types": "./index.d.ts",
|
|
163
|
-
"gitSha": "
|
|
163
|
+
"gitSha": "96131778d26f7d8d05edd865fbdd10526de7c2a9"
|
|
164
164
|
}
|
package/setupVitest.d.mts
CHANGED
package/setupVitest.d.ts
CHANGED
package/setupVitest.js
CHANGED
|
@@ -47,13 +47,13 @@ function setupVitest({
|
|
|
47
47
|
}
|
|
48
48
|
if (message.includes('Warning: useLayoutEffect does nothing on the server')) {
|
|
49
49
|
// Controversial warning that is commonly ignored by switching to `useEffect` on the server.
|
|
50
|
-
// https://github.com/
|
|
50
|
+
// https://github.com/react/react/issues/14927
|
|
51
51
|
// However, this switch doesn't work since it relies on environment sniffing and we test SSR in a browser environment.
|
|
52
52
|
return true;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
// Unclear why this is an issue for the current occurrences of this warning.
|
|
56
|
-
// TODO: Revisit once https://github.com/
|
|
56
|
+
// TODO: Revisit once https://github.com/react/react/issues/22796 is resolved
|
|
57
57
|
if (message.includes('Detected multiple renderers concurrently rendering the same context provider.')) {
|
|
58
58
|
return true;
|
|
59
59
|
}
|
package/setupVitest.mjs
CHANGED
|
@@ -38,13 +38,13 @@ export default function setupVitest({
|
|
|
38
38
|
}
|
|
39
39
|
if (message.includes('Warning: useLayoutEffect does nothing on the server')) {
|
|
40
40
|
// Controversial warning that is commonly ignored by switching to `useEffect` on the server.
|
|
41
|
-
// https://github.com/
|
|
41
|
+
// https://github.com/react/react/issues/14927
|
|
42
42
|
// However, this switch doesn't work since it relies on environment sniffing and we test SSR in a browser environment.
|
|
43
43
|
return true;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
// Unclear why this is an issue for the current occurrences of this warning.
|
|
47
|
-
// TODO: Revisit once https://github.com/
|
|
47
|
+
// TODO: Revisit once https://github.com/react/react/issues/22796 is resolved
|
|
48
48
|
if (message.includes('Detected multiple renderers concurrently rendering the same context provider.')) {
|
|
49
49
|
return true;
|
|
50
50
|
}
|