Skip to content

Commit 1c8eedf

Browse files
committed
tests: fix them
1 parent ca5ce01 commit 1c8eedf

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"test:ci": "jest",
99
"test:dev": "jest --watch",
1010
"build": "rollup --config rollup.config.js && tsc -b",
11-
"watch": "concurrently --kill-others \"rollup --config rollup.config.js -w\" \"tsc -b --watch\"",
11+
"watch": "concurrently --kill-others \"rollup --config rollup.config.js -w\" \"tsc -b --watch\" \"yarn test\"",
1212
"dev": "yarn watch",
1313
"prettier": "prettier \"packages/*/{src/**,examples/**/src/**}.{md,js,jsx,ts,tsx,json}\" --write",
1414
"visualize": "lerna exec 'open build/stats-html.html'",

packages/react-table/__tests__/core/core.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type Row = {
1414
progress: number
1515
}
1616

17-
const table = createTable().RowType<Row>()
17+
const table = createTable<Row>()
1818

1919
const defaultData: Row[] = [
2020
{
@@ -125,7 +125,7 @@ describe('core', () => {
125125
))}
126126
</thead>
127127
<tbody {...instance.getTableBodyProps()}>
128-
{instance.getRows().map(row => (
128+
{instance.getRowModel().rows.map(row => (
129129
<tr {...row.getRowProps()}>
130130
{row.getVisibleCells().map(cell => (
131131
<td {...cell.getCellProps()}>{cell.renderCell()}</td>

packages/react-table/__tests__/features/Visibility.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type Row = {
1414
progress: number
1515
}
1616

17-
const table = createTable().RowType<Row>()
17+
const table = createTable<Row>()
1818

1919
const defaultData: Row[] = [
2020
{
@@ -143,7 +143,7 @@ describe('useTable', () => {
143143
))}
144144
</thead>
145145
<tbody {...instance.getTableBodyProps()}>
146-
{instance.getRows().map(row => (
146+
{instance.getRowModel().rows.map(row => (
147147
<tr {...row.getRowProps()}>
148148
{row.getVisibleCells().map(cell => (
149149
<td {...cell.getCellProps()}>{cell.renderCell()}</td>

0 commit comments

Comments
 (0)