Skip to content

Commit 64a8b9c

Browse files
authored
chore: update all deps (#842)
1 parent 03bea9f commit 64a8b9c

File tree

5 files changed

+10
-36
lines changed

5 files changed

+10
-36
lines changed

package.json

+4-5
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"setup": "npm install && npm run validate -s",
1919
"test": "kcd-scripts test",
2020
"test:update": "npm test -- --updateSnapshot --coverage",
21-
"typecheck": "dtslint ./types/",
21+
"typecheck": "kcd-scripts typecheck --build types",
2222
"validate": "kcd-scripts validate"
2323
},
2424
"files": [
@@ -48,15 +48,14 @@
4848
},
4949
"devDependencies": {
5050
"@testing-library/jest-dom": "^5.11.6",
51-
"@types/react-dom": "^16.9.9",
51+
"@types/react-dom": "^17.0.0",
5252
"dotenv-cli": "^4.0.0",
53-
"dtslint": "4.0.5",
54-
"kcd-scripts": "^7.0.3",
53+
"kcd-scripts": "^7.5.1",
5554
"npm-run-all": "^4.1.5",
5655
"react": "^17.0.1",
5756
"react-dom": "^17.0.1",
5857
"rimraf": "^3.0.2",
59-
"typescript": "^4.0.5"
58+
"typescript": "^4.1.2"
6059
},
6160
"peerDependencies": {
6261
"react": "*",

src/__tests__/rerender.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ test('hydrate will not update props until next render', () => {
2323
hydrate: true,
2424
})
2525

26-
expect(initialInputElement.value).toBe(firstValue)
26+
expect(initialInputElement).toHaveValue(firstValue)
2727

2828
const secondValue = 'goodbye'
2929
rerender(<input value={secondValue} onChange={() => null} />)
30-
expect(initialInputElement.value).toBe(secondValue)
30+
expect(initialInputElement).toHaveValue(secondValue)
3131
})

types/test.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from 'react'
2-
import {render, fireEvent, screen, waitFor} from '@testing-library/react'
3-
import * as pure from '@testing-library/react/pure'
2+
import {render, fireEvent, screen, waitFor} from '.'
3+
import * as pure from './pure'
44

55
export async function testRender() {
66
const page = render(<div />)

types/tsconfig.json

+2-18
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,4 @@
1-
// this additional tsconfig is required by dtslint
2-
// see: https://github.com/Microsoft/dtslint#typestsconfigjson
31
{
4-
"compilerOptions": {
5-
"module": "commonjs",
6-
"lib": ["es6", "dom"],
7-
"jsx": "react",
8-
"noImplicitAny": true,
9-
"noImplicitThis": true,
10-
"strictNullChecks": true,
11-
"strictFunctionTypes": true,
12-
"noEmit": true,
13-
"baseUrl": ".",
14-
"skipLibCheck": true,
15-
"paths": {
16-
"@testing-library/react": ["."],
17-
"@testing-library/react/pure": ["."]
18-
}
19-
}
2+
"extends": "../node_modules/kcd-scripts/shared-tsconfig.json",
3+
"include": ["."]
204
}

types/tslint.json

-9
This file was deleted.

0 commit comments

Comments
 (0)