Skip to content

Commit 9227613

Browse files
Update @testing-library/react to the latest version 🚀 (#145)
* chore(package): update @testing-library/react to version 10.0.0 * fix(test): remove deprecated cleanup-after-each.js * ci(travis): update .travis.yml Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com> Co-authored-by: ArrayZoneYour <hustliyidong@gmail.com>
1 parent 0538550 commit 9227613

21 files changed

+7
-31
lines changed

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
language: node_js
22
node_js:
3-
- '8'
43
- '9'
54
- '10'
65
- '11'
76
- '12'
8-
before_script:
7+
- '13'
8+
9+
before_install:
910
- npm install react@latest react-dom@latest
10-
scripts:
1111
- npm install codecov -g
12+
1213
after_success:
1314
- npm run test:coverage
1415
- codecov -f coverage/*.json

__test__/actions/actions.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/// <reference path="../index.d.ts" />
22
import { renderHook } from '@testing-library/react-hooks'
3-
import '@testing-library/react/cleanup-after-each'
43
import { Model } from '../../src'
54
import { ActionsTester } from '../index'
65

__test__/actions/getActions.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/// <reference path="../index.d.ts" />
2-
import '@testing-library/react/cleanup-after-each'
32
import { renderHook } from '@testing-library/react-hooks'
43
import { ActionsTester } from '../index'
54
import { Model } from '../../src'

__test__/actions/unmount.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/// <reference path="../index.d.ts" />
2-
import '@testing-library/react/cleanup-after-each'
32
import { renderHook } from '@testing-library/react-hooks'
43
import { ActionsTester } from '../index'
54
import { Model } from '../../src'

__test__/actions/useStore.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/// <reference path="../index.d.ts" />
2-
import '@testing-library/react/cleanup-after-each'
32
import { renderHook } from '@testing-library/react-hooks'
43
import { ActionsTester } from '../index'
54
import { Model } from '../../src'

__test__/asyncState.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/// <reference path="./index.d.ts" />
2-
import '@testing-library/react/cleanup-after-each'
32
import { Model } from '../src'
43
import { AsyncCounter, AsyncNull } from '.'
54

__test__/class/class.spec.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/// <reference path="../index.d.ts" />
2-
import '@testing-library/react/cleanup-after-each'
32
import * as React from 'react'
43
import { Model, Provider, connect } from '../../src'
54
import { Counter } from '../index'

__test__/class/communicator.spec.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/// <reference path="../index.d.ts" />
2-
import '@testing-library/react/cleanup-after-each'
32
import * as React from 'react'
43
import { Model, Provider, connect } from '../../src'
54
import { Counter } from '../index'

__test__/class/mapActions.spec.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/// <reference path="../index.d.ts" />
2-
import '@testing-library/react/cleanup-after-each'
32
import * as React from 'react'
43
import { Model, Provider, connect } from '../../src'
54
import { Counter } from '..'

__test__/class/renderProps.spec.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/// <reference path="../index.d.ts" />
2-
import '@testing-library/react/cleanup-after-each'
32
import * as React from 'react'
43
import { Model, Provider, connect } from '../../src'
54
import { Counter } from '..'

0 commit comments

Comments
 (0)