Skip to content

Commit

Permalink
[test] Fix type tests not being type checked (#21539)
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Jun 22, 2020
1 parent 9e0e31a commit c26ede5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion packages/material-ui/test/typescript/components.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,11 @@ const SelectTest = () => (
</Select>
);

const InputAdornmentTest = () => <InputAdornment position="end" onClick={() => alert('Hello')} />;
const InputAdornmentTest = () => (
<InputAdornment position="end" onClick={() => alert('Hello')}>
Some Icon
</InputAdornment>
);

const TooltipComponentTest = () => (
<div>
Expand Down
4 changes: 3 additions & 1 deletion tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"deprecation": true,
// $ExpectError -> @ts-expect-error
// $ExpectType -> `expectType` from `@material-ui/types`
"expect": false,
// Don't disable this rule unless you made sure `tsc` runs on the same files
// Otherwise some files won't be type-checked
"expect": true,
"file-name-casing": false,
"no-boolean-literal-compare": false,
"no-empty-interface": false,
Expand Down

0 comments on commit c26ede5

Please sign in to comment.