Skip to content

Commit 7920b2c

Browse files
committed
fixed tests
1 parent 72a95d2 commit 7920b2c

File tree

6 files changed

+1982
-1399
lines changed

6 files changed

+1982
-1399
lines changed

__tests__/LoadingOverlay.test.js renamed to __tests__/LoadingOverlay.test.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ jest.useFakeTimers()
77

88
afterEach(cleanup)
99

10-
class DelayedInactive extends Component {
11-
constructor (props) {
10+
class DelayedInactive extends Component<any, {active: boolean}> {
11+
timer: any;
12+
13+
constructor (props: any) {
1214
super(props)
1315
this.state = { active: true }
1416
}

jest.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
module.exports = {
3+
'testMatch': [
4+
'**/__tests__/**/*.+(ts|tsx|js)',
5+
'**/?(*.)+(spec|test).+(ts|tsx|js)'
6+
],
7+
'transform': {
8+
'^.+\\.(ts|tsx)$': 'ts-jest'
9+
}
10+
}

0 commit comments

Comments
 (0)