diff --git a/packages/test-utilities/package.json b/packages/test-utilities/package.json index 112fc26127a678..c0c31d145e5c9b 100644 --- a/packages/test-utilities/package.json +++ b/packages/test-utilities/package.json @@ -9,6 +9,7 @@ "exports": { ".": "./src/index.ts", "./init": "./src/init.js", + "./initMatchers": "./src/initMatchers.ts", "./initPlaywrightMatchers": "./src/initPlaywrightMatchers.ts", "./KarmaReporterReactProfiler": "./src/KarmaReporterReactProfiler.js", "./setupBabel": "./src/setupBabel.js", diff --git a/test/e2e/index.test.ts b/test/e2e/index.test.ts index 3ef97db8d12698..ba04fa05325b15 100644 --- a/test/e2e/index.test.ts +++ b/test/e2e/index.test.ts @@ -7,6 +7,7 @@ import type { MatcherOptions, SelectorMatcherOptions, } from '@testing-library/dom'; +import '@mui-internal/test-utilities/initMatchers'; import '@mui-internal/test-utilities/initPlaywrightMatchers'; function sleep(duration: number): Promise { diff --git a/test/tsconfig.json b/test/tsconfig.json index 798f9d363f0e6d..b7cc8d29136617 100644 --- a/test/tsconfig.json +++ b/test/tsconfig.json @@ -1,12 +1,13 @@ { "extends": "../tsconfig.json", - "include": ["e2e/**/*", "regressions/**/*", "utils/**/*"], "compilerOptions": { "allowJs": true, - "noEmit": true, "noUnusedLocals": true, "skipLibCheck": true, - "esModuleInterop": true + "esModuleInterop": true, + "moduleResolution": "node16", + "types": ["mocha"] }, - "exclude": ["node_modules"] + "include": ["e2e/**/*", "regressions/**/*"], + "exclude": ["node_modules", "*/build"] } diff --git a/tsconfig.json b/tsconfig.json index f18dfa4f29d3ca..2c5723bbbe1591 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -44,7 +44,6 @@ "@mui/zero-runtime/*": ["./packages/zero-runtime/src/*"], "@mui/zero-tag-processor/*": ["./packages/zero-tag-processor/src/*"], "@mui/zero-vite-plugin/*": ["./packages/zero-vite-plugin/src/*"], - "test/*": ["./test/*"], "typescript-to-proptypes": ["./packages/typescript-to-proptypes/src"] }, // Otherwise we get react-native typings which conflict with dom.lib.