File tree Expand file tree Collapse file tree 4 files changed +18
-18
lines changed Expand file tree Collapse file tree 4 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 11const useESModules = ! ! process . env . ESMODULES ;
22
3- if ( process . env . NODE_ENV === ' test' ) {
3+ if ( process . env . NODE_ENV === " test" ) {
44 module . exports = {
5- presets : [
6- '@babel/preset-env' ,
7- "@babel/preset-react"
8- ] ,
5+ presets : [ "@babel/preset-env" , "@babel/preset-react" ] ,
96 plugins : [
107 "@babel/plugin-proposal-class-properties" ,
11- "@babel/plugin-transform-runtime" ,
8+ "@babel/plugin-transform-runtime"
129 ]
1310 } ;
1411} else {
1512 module . exports = {
16- " presets" : [
13+ presets : [
1714 [
18- ' @babel/preset-env' ,
15+ " @babel/preset-env" ,
1916 {
20- modules : useESModules ? false : ' auto' ,
17+ modules : useESModules ? false : " auto"
2118 }
2219 ] ,
2320 "@babel/preset-react"
2421 ] ,
25- " plugins" : [
22+ plugins : [
2623 "@babel/plugin-proposal-class-properties" ,
2724 [
2825 "@babel/plugin-transform-runtime" ,
2926 {
3027 useESModules,
31- version : "^7.10.4" ,
28+ version : "^7.20.7"
3229 }
3330 ]
3431 ]
Original file line number Diff line number Diff line change 99 - uses : actions/checkout@v4
1010 - uses : actions/setup-node@v4
1111 with :
12- node-version : ' 20.x '
12+ node-version : 20
1313 - run : npm install
1414 - run : npm run lint
1515 - run : npm run build
16- - run : npm test
16+ - run : npm test -- --coverage
17+ - uses : codecov/codecov-action@v4
18+ with :
19+ token : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change 4949 "@babel/polyfill" : " ^7.0.0" ,
5050 "@babel/preset-env" : " ^7.1.0" ,
5151 "@babel/preset-react" : " ^7.0.0" ,
52- "@testing-library/jest-dom" : " ^5.16.4 " ,
53- "@testing-library/react" : " ^13.3 .0" ,
54- "@testing-library/user-event" : " ^14.3.0 " ,
52+ "@testing-library/jest-dom" : " ^6.4.8 " ,
53+ "@testing-library/react" : " ^16.0 .0" ,
54+ "@testing-library/user-event" : " ^14.5.2 " ,
5555 "autoprefixer" : " ^7.1.2" ,
5656 "babel-core" : " ^7.0.0-bridge.0" ,
5757 "babel-jest" : " ^24.8.0" ,
9292 "why-did-you-update" : " ^0.1.1"
9393 },
9494 "dependencies" : {
95- "@babel/runtime" : " ^7.10.4 " ,
95+ "@babel/runtime" : " ^7.20.7 " ,
9696 "classnames" : " ^2.2.5" ,
9797 "json2mq" : " ^0.2.0" ,
9898 "resize-observer-polyfill" : " ^1.5.1" ,
Original file line number Diff line number Diff line change 1- import "@testing-library/jest-dom/extend-expect " ;
1+ import "@testing-library/jest-dom" ;
22import "regenerator-runtime/runtime" ;
33
44//Fix for "matchMedia not present, legacy browsers require a polyfill jest" error
You can’t perform that action at this time.
0 commit comments