Skip to content

Commit

Permalink
Fix TS issues with e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
michaldudak committed Sep 19, 2023
1 parent 5531c65 commit 4b9be90
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/test-utilities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions test/e2e/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> {
Expand Down
9 changes: 5 additions & 4 deletions test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -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"]
}
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4b9be90

Please sign in to comment.