Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7,327 changes: 3,810 additions & 3,517 deletions package-lock.json

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@
"react-dom": "^16.12.0"
},
"devDependencies": {
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.3",
"prettier": "^1.19.1",
"react-scripts": "3.2.0"
"react-scripts": "^3.4.3",
"react-test-renderer": "^16.13.1"
},
"scripts": {
"start": "react-scripts start",
Expand Down
32 changes: 18 additions & 14 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="theme-color" content="#000000" />
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.png" />
<title>Calcultronic 5000</title>
</head>
<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<div id="root"></div>
</body>
</html>

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="theme-color" content="#000000" />
<link href="https://fonts.googleapis.com/css?family=Orbitron:400,700" rel="stylesheet">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.png" />
<title>Calcultronic 5000</title>
</head>

<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<div id="root"></div>
</body>

</html>
7 changes: 7 additions & 0 deletions src/components/App/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.app-container {
height: 100vh;
width: 100vw;
align-items: center;
display: flex;
justify-content: center;
}
6 changes: 6 additions & 0 deletions src/components/App/App.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import React from "react";
import "./App.css";

const App = () => <div className="app-container" />;

export default App;
10 changes: 10 additions & 0 deletions src/components/App/App.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react';
import { shallow } from 'enzyme';
import App from './App';

describe('App', () => {
it('should render a <div />', () => {
const wrapper = shallow(<App />);
expect(wrapper.find('div').length).toEqual(1);
});
});
19 changes: 19 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
app variables
*/

:root {
/* font */
--main-font: "Orbitron", sans-serif;
}

/*
app CSS reset
*/

body,
div,
p {
margin: 0;
padding: 0;
}
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';

ReactDOM.render(<div>Hello World!</div>, document.getElementById('root'));
4 changes: 4 additions & 0 deletions src/setupTests.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';

configure({ adapter: new Adapter() });