File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ # JavaScript Testing For Beginners
2+ ## Day 2 - Your first tests
3+
4+ 1 . Creating blank project
5+ 2 . Installing JS testing dependencies
6+ 3 . Installing ES6/ES2015 dependencies
7+ 4 . Create a function to test
8+ 5 . Create a test file
9+ 6 . Test Driven Development style
10+ 7 . Test for data types
11+ 8 . Test for equals
12+ 9 . Test contains
13+ 10 . Test for errors
14+ 11 . Tidy up
15+
16+ ## Day 3 - Asynchronous testing
17+
18+ 1 . Creating new source file
19+ 2 . Callback function
20+ 3 . Write an asynchronous test
21+ 4 . Async test gotchas!
22+ 5 . Mocha 'done'
23+ 6 . Testing promises
24+
25+ ## Day 4 - Time travel with fake timers
26+
27+ 1 . Install sinon
28+ 2 . Fake timer in test
29+ 3 . Use mocha to stub and restore timers
30+ 4 . Date code which displays different strings based on date
31+ 5 . Set fake date to now and tick to the future
32+
33+ ## Day 5 - GitHub stargazing with stubs & spies
34+
35+ ## Day 6 - Simplify & automate your tests
36+
37+ 1 . Put test call in package.json script
38+ 2 . Refactor tests using mocha.opts
39+ 3 . Add mocha watch command
40+ 4 . Skipping tests
41+ 5 . Isolating tests
42+ 6 . Increase timeouts
43+ 7 . Install husky
44+ 8 . Run tests when commit or push
45+
46+ ## Day 7 - JavaScript testing recap
47+
48+ * TODO
49+
50+
You can’t perform that action at this time.
0 commit comments