Skip to content

Commit

Permalink
Run typescript tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dmtrKovalenko committed May 25, 2020
1 parent d374865 commit 47f0271
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ jobs:
- run:
name: Typescript
command: yarn workspaces run build:typescript
- run:
name: Run typescript tests
command: yarn workspace @material-ui/pickers run test:typescript
- run:
name: Build and analyze bundlesize
command: yarn workspace @material-ui/pickers build:analyze
Expand Down
1 change: 1 addition & 0 deletions lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
},
"scripts": {
"test": "jest",
"test:typescript": "tsc -p src/__tests__/tsconfig.json",
"test:date-fns": "UTILS=date-fns yarn test",
"test:luxon": "UTILS=luxon yarn test",
"test:moment": "UTILS=moment yarn test",
Expand Down
2 changes: 1 addition & 1 deletion lib/src/__tests__/DatePicker.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import Picker from '../Picker/Picker';
import { ReactWrapper } from 'enzyme';
import { Picker } from '../Picker/Picker';
import { TextField } from '@material-ui/core';
import { MaterialUiPickersDate } from '../typings/date';
import { mount, utilsToUse, mountPickerWithState } from './test-utils';
Expand Down
7 changes: 5 additions & 2 deletions lib/src/__tests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"extends": "../../tsconfig.json",
"include": ["../../typings.d.ts", "./**/*.tsx", "./**/*.ts"],
"exclude": []
"exclude": [],
"include": ["../../typings.d.ts", "./typings.d.ts", "./**/*.tsx", "./**/*.ts", "./typescript/*"],
"compilerOptions": {
// "baseUrl": ".",
}
}
File renamed without changes.

0 comments on commit 47f0271

Please sign in to comment.