Skip to content

Commit

Permalink
docs: ✏️ add packages and test results
Browse files Browse the repository at this point in the history
  • Loading branch information
Chun-Lin committed Jun 11, 2019
1 parent 984b9d6 commit 191afa9
Show file tree
Hide file tree
Showing 7 changed files with 170 additions and 124 deletions.
Binary file modified cypress/videos/todoList.js.mp4
Binary file not shown.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"puppeteer": "^1.17.0",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-scripts": "3.0.1"
"react-scripts": "3.0.1",
"start-server-and-test": "^1.9.1"
},
"scripts": {
"start": "react-scripts start",
Expand All @@ -19,12 +20,13 @@
"eject": "react-scripts eject",
"cy:open": "cypress open",
"cy:run": "cypress run",
"test:image:snapshot": "start-test 3000 test",
"test:e2e:dev": "start-test 3000 cy:open",
"test:e2e:cli": "start-test 3000 cy:run",
"mdx:start": "mdx-deck reactTesting.mdx",
"mdx:build": "mdx-deck build reactTesting.mdx",
"mdx:predeploy": "npm run mdx:build",
"mdx:deploy": "gh-pages -d mdx:build"
"mdx:deploy": "gh-pages -d mdx:build"
},
"eslintConfig": {
"extends": "react-app"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions src/__tests__/__snapshots__/numberDisplay.js.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`<NumberDisplay> snapshot 1`] = `
<div>
<div>
<span
data-testid="number-display"
>
1
</span>
</div>
</div>
`;
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import App from './App'
import TodoList from 'TodoList'
import * as serviceWorker from './serviceWorker'

// ReactDOM.render(<TodoList />, document.getElementById('root'))
ReactDOM.render(<TodoList />, document.getElementById('root'))

ReactDOM.render(<App />, document.getElementById('root'));
// ReactDOM.render(<App />, document.getElementById('root'));

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
Expand Down
Loading

0 comments on commit 191afa9

Please sign in to comment.