Skip to content

Commit 2de9990

Browse files
committed
Add Initial Manual Tests
1 parent 5120cd7 commit 2de9990

File tree

533 files changed

+174578
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

533 files changed

+174578
-0
lines changed

sandboxes/automated-tests/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/node_modules/*
2+
!/node_modules/reactime
3+
.DS_Store
4+
index-bundle.js
5+
typescript-bundle.js
6+
example.png
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
extends: ['airbnb', 'prettier'],
3+
plugins: ['prettier'],
4+
rules: {
5+
'prettier/prettier': ['error'],
6+
'react/jsx-filename-extension': [0],
7+
'no-console': [0],
8+
'react/prop-types': [0]
9+
}
10+
};
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/node_modules/*
2+
!/node_modules/reactime
3+
.DS_Store
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import React from 'react';
2+
import './index.scss';
3+
// import { Provider } from 'react-redux';
4+
// import store from './src/redux/store';
5+
import Scenes from './src/scenes/index';
6+
7+
const App = () => {
8+
return (
9+
<>
10+
{/* <Provider store={store}> */}
11+
<Scenes />
12+
{/* </Provider> */}
13+
</>
14+
);
15+
};
16+
17+
export default App;
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import React from 'react';
2+
import ReactDOM from 'react-dom';
3+
import reactime from 'reactime';
4+
import App from './app';
5+
6+
const rootContainer = document.getElementById('root');
7+
8+
// Concurrent Mode
9+
const root = ReactDOM.createRoot(rootContainer);
10+
11+
root.render(<App />);
12+
13+
reactime(root);
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
@import './src/scss/global.scss';
2+
3+
@import '~bootstrap/scss/bootstrap.scss';
4+
5+
body {
6+
margin: 0;
7+
-webkit-font-smoothing: antialiased;
8+
-moz-osx-font-smoothing: grayscale;
9+
10+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
11+
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
12+
sans-serif;
13+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1" />
6+
<meta name="theme-color" content="#000000" />
7+
<meta name="description" content="Reactime Sandboxes" />
8+
<title>Reactime Sandboxes</title>
9+
</head>
10+
<body>
11+
<noscript>You need to enable JavaScript to run this app.</noscript>
12+
<div id="root">
13+
HTML in the Root Div
14+
</div>
15+
<script src="./bundle.js"></script>
16+
</body>
17+
</html>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { createContext } from 'react';
2+
3+
const AppContext = createContext();
4+
5+
export default AppContext;
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/* eslint-disable import/named */
2+
import React, { useState } from 'react';
3+
import AppContext from './appContext';
4+
5+
function AppContextProvider(props) {
6+
const { children } = props;
7+
const [count, setCount] = useState(0);
8+
9+
return (
10+
<AppContext.Provider
11+
value={{
12+
count,
13+
setCount() {
14+
setCount(lastValue => lastValue + 1);
15+
}
16+
}}
17+
>
18+
{children}
19+
</AppContext.Provider>
20+
);
21+
}
22+
23+
export default AppContextProvider;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const INCREASE_COUNT = 'INCREASE_COUNT';

0 commit comments

Comments
 (0)