Skip to content

Commit

Permalink
chore: update all deps (#842)
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds authored Dec 4, 2020
1 parent 03bea9f commit 64a8b9c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 36 deletions.
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"setup": "npm install && npm run validate -s",
"test": "kcd-scripts test",
"test:update": "npm test -- --updateSnapshot --coverage",
"typecheck": "dtslint ./types/",
"typecheck": "kcd-scripts typecheck --build types",
"validate": "kcd-scripts validate"
},
"files": [
Expand Down Expand Up @@ -48,15 +48,14 @@
},
"devDependencies": {
"@testing-library/jest-dom": "^5.11.6",
"@types/react-dom": "^16.9.9",
"@types/react-dom": "^17.0.0",
"dotenv-cli": "^4.0.0",
"dtslint": "4.0.5",
"kcd-scripts": "^7.0.3",
"kcd-scripts": "^7.5.1",
"npm-run-all": "^4.1.5",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"rimraf": "^3.0.2",
"typescript": "^4.0.5"
"typescript": "^4.1.2"
},
"peerDependencies": {
"react": "*",
Expand Down
4 changes: 2 additions & 2 deletions src/__tests__/rerender.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ test('hydrate will not update props until next render', () => {
hydrate: true,
})

expect(initialInputElement.value).toBe(firstValue)
expect(initialInputElement).toHaveValue(firstValue)

const secondValue = 'goodbye'
rerender(<input value={secondValue} onChange={() => null} />)
expect(initialInputElement.value).toBe(secondValue)
expect(initialInputElement).toHaveValue(secondValue)
})
4 changes: 2 additions & 2 deletions types/test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react'
import {render, fireEvent, screen, waitFor} from '@testing-library/react'
import * as pure from '@testing-library/react/pure'
import {render, fireEvent, screen, waitFor} from '.'
import * as pure from './pure'

export async function testRender() {
const page = render(<div />)
Expand Down
20 changes: 2 additions & 18 deletions types/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@
// this additional tsconfig is required by dtslint
// see: https://github.com/Microsoft/dtslint#typestsconfigjson
{
"compilerOptions": {
"module": "commonjs",
"lib": ["es6", "dom"],
"jsx": "react",
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"noEmit": true,
"baseUrl": ".",
"skipLibCheck": true,
"paths": {
"@testing-library/react": ["."],
"@testing-library/react/pure": ["."]
}
}
"extends": "../node_modules/kcd-scripts/shared-tsconfig.json",
"include": ["."]
}
9 changes: 0 additions & 9 deletions types/tslint.json

This file was deleted.

0 comments on commit 64a8b9c

Please sign in to comment.