@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 CHANGED
@@ -1,4 +1,4 @@
1
- The MIT License (MIT)
1
+ MIT License
2
2
 
3
3
  Copyright (c) 2019 Material-UI SAS
4
4
 
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)
@@ -1,4 +1,5 @@
1
- import { queries, type RenderResult, fireEvent as rtlFireEvent, type Screen, type RenderOptions as TestingLibraryRenderOptions } from '@testing-library/react/pure.js';
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';
@@ -1,4 +1,5 @@
1
- import { queries, type RenderResult, fireEvent as rtlFireEvent, type Screen, type RenderOptions as TestingLibraryRenderOptions } from '@testing-library/react/pure.js';
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';
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { type MuiRenderResult } from "./createRenderer.mjs";
2
+ import type { MuiRenderResult } from "./createRenderer.mjs";
3
3
  interface DataProps {
4
4
  [key: `data-${string}`]: string;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { type MuiRenderResult } from "./createRenderer.js";
2
+ import type { MuiRenderResult } from "./createRenderer.js";
3
3
  interface DataProps {
4
4
  [key: `data-${string}`]: string;
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/internal-test-utils",
3
- "version": "2.0.18-canary.25",
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": "8db9f6d4d2d14e834e3f8fda91d902a583fbf55b"
163
+ "gitSha": "96131778d26f7d8d05edd865fbdd10526de7c2a9"
164
164
  }
package/setupVitest.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./chaiTypes.mjs";
2
- import { type Configuration } from "./configure.mjs";
2
+ import type { Configuration } from "./configure.mjs";
3
3
  export default function setupVitest({
4
4
  failOnConsoleEnabled,
5
5
  ...config
package/setupVitest.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./chaiTypes.js";
2
- import { type Configuration } from "./configure.js";
2
+ import type { Configuration } from "./configure.js";
3
3
  export default function setupVitest({
4
4
  failOnConsoleEnabled,
5
5
  ...config
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/facebook/react/issues/14927
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/facebook/react/issues/22796 is resolved
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/facebook/react/issues/14927
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/facebook/react/issues/22796 is resolved
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
  }