├── .babelrc ├── .gitignore ├── README.md ├── index.html ├── package.json └── src ├── App.js ├── App.test.js └── index.js /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["env"], 3 | "env": { 4 | "test": { 5 | "presets": ["env"] 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_STORE 3 | .vscode 4 | .cache 5 | dist -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Level Up Tutorials JavaScript Testing 101 2 | 3 | ## Help Support 4 | 5 | https://www.leveluptutorials.com/store 6 | 7 | ## How To Use 8 | 9 | ``` 10 | git clone https://github.com/leveluptuts/Level-Up-JavaScript-Testing-101.git 11 | cd Level-Up-JavaScript-Testing-101 12 | npm install 13 | npm test 14 | ``` 15 | 16 | Then follow along on Youtube 17 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |

5 | Testing 101 6 |

7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "testing101", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "start": "parcel index.html", 8 | "test": "jest --watchAll" 9 | }, 10 | "keywords": [], 11 | "author": "", 12 | "license": "ISC", 13 | "devDependencies": { 14 | "babel-preset-env": "^1.6.1", 15 | "jest": "^22.4.3", 16 | "parcel-bundler": "^1.7.0" 17 | }, 18 | "jest": { 19 | "verbose": true, 20 | "testURL": "http://localhost:1234/" 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/App.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leveluptuts/Level-Up-JavaScript-Testing-101/525e151083bc4e83cf1167d9f04b31f1fe2107f6/src/App.js -------------------------------------------------------------------------------- /src/App.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leveluptuts/Level-Up-JavaScript-Testing-101/525e151083bc4e83cf1167d9f04b31f1fe2107f6/src/App.test.js -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import './App'; 2 | --------------------------------------------------------------------------------