Skip to content

Commit 2c6f53d

Browse files
authored
chore: update deps (#891)
* chore: bump ts * chore: bump deps * chore: try * chore: all of it * test: update snapshot * chore: rm jest
1 parent 7f6a726 commit 2c6f53d

File tree

5 files changed

+25
-25
lines changed

5 files changed

+25
-25
lines changed

.fatherrc.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
export default {
2-
cjs: 'babel',
3-
esm: { type: 'babel', importLibToEs: true },
4-
runtimeHelpers: true,
5-
preCommit: {
6-
eslint: true,
7-
prettier: false,
1+
import { defineConfig } from 'father';
2+
3+
export default defineConfig({
4+
platform: 'browser',
5+
cjs: { output: 'lib' },
6+
esm: {
7+
output: 'es',
8+
alias: { 'rc-util/lib': 'rc-util/es' },
89
},
9-
};
10+
});

package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
"compile": "father build && lessc assets/index.less assets/index.css",
4242
"deploy": "npm run docs:build && npm run docs:deploy",
4343
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
44-
"test": "father test",
45-
"coverage": "father test --coverage",
44+
"test": "rc-test",
45+
"coverage": "rc-test --coverage",
4646
"prepublishOnly": "npm run compile && np --no-cleanup --yolo --no-publish",
4747
"lint": "eslint src/ --ext .tsx,.ts",
4848
"lint:tsc": "tsc -p tsconfig.json --noEmit",
@@ -73,8 +73,7 @@
7373
"enzyme-adapter-react-16": "^1.0.1",
7474
"enzyme-to-json": "^3.1.2",
7575
"eslint": "^7.1.0",
76-
"father": "^2.22.0",
77-
"father-build": "^1.18.6",
76+
"father": "^4.0.0-rc.8",
7877
"gh-pages": "^3.1.0",
7978
"glob": "^7.1.6",
8079
"immutability-helper": "^3.0.0",
@@ -84,17 +83,17 @@
8483
"rc-animate": "^3.0.0",
8584
"rc-dropdown": "~4.0.1",
8685
"rc-menu": "~9.6.0",
86+
"rc-test": "^7.0.2",
8787
"rc-tooltip": "^5.2.1",
8888
"react": "^16.0.0",
8989
"react-dnd": "^2.5.4",
9090
"react-dnd-html5-backend": "^2.5.4",
9191
"react-dom": "^16.0.0",
9292
"react-resizable": "^1.7.5",
93-
"react-test-renderer": "^16.0.0",
9493
"react-virtualized": "^9.12.0",
9594
"react-window": "^1.8.5",
9695
"regenerator-runtime": "^0.13.7",
9796
"styled-components": "^5.0.1",
98-
"typescript": "^4.0.3"
97+
"typescript": "^4.8.4"
9998
}
10099
}

tests/__snapshots__/ExpandRow.spec.js.snap

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ exports[`Table.Expand does not crash if scroll is not set 1`] = `
153153
<tr
154154
aria-hidden="true"
155155
class="rc-table-measure-row"
156-
style="height: 0px; font-size: 0;"
156+
style="height: 0px; font-size: 0px;"
157157
>
158158
<td
159159
style="padding: 0px; border: 0px; height: 0px;"
@@ -305,7 +305,7 @@ exports[`Table.Expand does not crash if scroll is not set 2`] = `
305305
<tr
306306
aria-hidden="true"
307307
class="rc-table-measure-row"
308-
style="height: 0px; font-size: 0;"
308+
style="height: 0px; font-size: 0px;"
309309
>
310310
<td
311311
style="padding: 0px; border: 0px; height: 0px;"
@@ -544,7 +544,7 @@ exports[`Table.Expand renders fixed column correctly work 1`] = `
544544
<tr
545545
aria-hidden="true"
546546
class="rc-table-measure-row"
547-
style="height: 0px; font-size: 0;"
547+
style="height: 0px; font-size: 0px;"
548548
>
549549
<td
550550
style="padding: 0px; border: 0px; height: 0px;"
@@ -1003,7 +1003,7 @@ exports[`Table.Expand work in expandable fix 1`] = `
10031003
<tr
10041004
aria-hidden="true"
10051005
class="rc-table-measure-row"
1006-
style="height: 0px; font-size: 0;"
1006+
style="height: 0px; font-size: 0px;"
10071007
>
10081008
<td
10091009
style="padding: 0px; border: 0px; height: 0px;"
@@ -1158,7 +1158,7 @@ exports[`Table.Expand work in expandable fix 2`] = `
11581158
<tr
11591159
aria-hidden="true"
11601160
class="rc-table-measure-row"
1161-
style="height: 0px; font-size: 0;"
1161+
style="height: 0px; font-size: 0px;"
11621162
>
11631163
<td
11641164
style="padding: 0px; border: 0px; height: 0px;"

tests/__snapshots__/FixedColumn.spec.js.snap

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ exports[`Table.FixedColumn fixed column renders correctly RTL 1`] = `
110110
<tr
111111
aria-hidden="true"
112112
class="rc-table-measure-row"
113-
style="height: 0px; font-size: 0;"
113+
style="height: 0px; font-size: 0px;"
114114
>
115115
<td
116116
style="padding: 0px; border: 0px; height: 0px;"
@@ -862,7 +862,7 @@ exports[`Table.FixedColumn renders correctly scrollX - with data 1`] = `
862862
<tr
863863
aria-hidden="true"
864864
class="rc-table-measure-row"
865-
style="height: 0px; font-size: 0;"
865+
style="height: 0px; font-size: 0px;"
866866
>
867867
<td
868868
style="padding: 0px; border: 0px; height: 0px;"
@@ -1639,7 +1639,7 @@ exports[`Table.FixedColumn renders correctly scrollX - without data 1`] = `
16391639
<tr
16401640
aria-hidden="true"
16411641
class="rc-table-measure-row"
1642-
style="height: 0px; font-size: 0;"
1642+
style="height: 0px; font-size: 0px;"
16431643
>
16441644
<td
16451645
style="padding: 0px; border: 0px; height: 0px;"
@@ -1940,7 +1940,7 @@ exports[`Table.FixedColumn renders correctly scrollXY - with data 1`] = `
19401940
<tr
19411941
aria-hidden="true"
19421942
class="rc-table-measure-row"
1943-
style="height: 0px; font-size: 0;"
1943+
style="height: 0px; font-size: 0px;"
19441944
>
19451945
<td
19461946
style="padding: 0px; border: 0px; height: 0px;"
@@ -2771,7 +2771,7 @@ exports[`Table.FixedColumn renders correctly scrollXY - without data 1`] = `
27712771
<tr
27722772
aria-hidden="true"
27732773
class="rc-table-measure-row"
2774-
style="height: 0px; font-size: 0;"
2774+
style="height: 0px; font-size: 0px;"
27752775
>
27762776
<td
27772777
style="padding: 0px; border: 0px; height: 0px;"

tests/__snapshots__/Table.spec.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ exports[`Table.Basic custom components renders fixed column and header correctly
132132
<tr
133133
aria-hidden="true"
134134
class="rc-table-measure-row"
135-
style="height: 0px; font-size: 0;"
135+
style="height: 0px; font-size: 0px;"
136136
>
137137
<td
138138
style="padding: 0px; border: 0px; height: 0px;"

0 commit comments

Comments
 (0)