This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Tools: mocha, chai-enzyme, jsdom, airbnb enzyme | |
| Using WebStorm test runner and WebStorm to write code. | |
| For the prod code, using Flow for type checking | |
| These are isolated unit tests (not integration) that test behavior for particular React components | |
| A big reason why I like React.js vs Vue, Angular, or other types of frameworks or | |
| libraries is the simplicity at which you can test behavior. Also there's no magic going on here in terms of |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // UserRepository.js ------------------------------------------------------------------------- | |
| // ... implementation | |
| module.exports = UserRepository; | |
| // UserService.js ------------------------------------------------------------------------- | |
| // ... implementation | |
| module.exports = UserService; |
OlderNewer