Skip to content

Commit

Permalink
Upgrade react
Browse files Browse the repository at this point in the history
  • Loading branch information
pawitp committed Jan 24, 2024
1 parent b27b0ec commit 2fc8f2d
Show file tree
Hide file tree
Showing 5 changed files with 7,431 additions and 8,090 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version: 2
jobs:
build:
docker:
- image: circleci/node:10
- image: cimg/node:20.11

working_directory: ~/repo

Expand Down
18 changes: 13 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^13.0.0",
"@testing-library/user-event": "^13.2.1",
"buffer": "^6.0.3",
"jsbi": "^3.1.1",
"react": "^16.10.0",
"react-dom": "^16.10.0",
"react-scripts": "3.1.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
"semantic-ui-css": "^2.4.1",
"semantic-ui-react": "^0.88.1"
"semantic-ui-react": "^0.88.1",
"web-vitals": "^2.1.0"
},
"scripts": {
"start": "react-scripts start",
Expand All @@ -17,7 +22,10 @@
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
Expand Down
7 changes: 2 additions & 5 deletions src/App.test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import React from "react";
import ReactDOM from "react-dom";
import { render, screen } from '@testing-library/react';
import App from "./App";

it("renders without crashing", () => {
const div = document.createElement("div");
ReactDOM.render(<App />, div);
ReactDOM.unmountComponentAtNode(div);
render(<App />)
});
2 changes: 2 additions & 0 deletions src/hexUtils.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Buffer } from 'buffer'

export function parseInput(input) {
const normalizedInput = input.replace(/\s/g, "");
const normalizedHexInput = normalizedInput.replace(/0x/g, "").toLowerCase();
Expand Down
Loading

0 comments on commit 2fc8f2d

Please sign in to comment.