Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Menu
Open sidebar
Derek Knox
notes
Commits
34b8bc99
Commit
34b8bc99
authored
Jul 23, 2020
by
Derek Knox
Browse files
Update JavaScript Testing Practices and Principles by Kent C. Dodds.md
parent
658cbec9
Changes
1
Hide whitespace changes
Inline
Side-by-side
JavaScript Testing Practices and Principles by Kent C. Dodds.md
View file @
34b8bc99
...
...
@@ -71,6 +71,7 @@ A fake version of something, often a function, function payload, or module
-
Test Object Factories can be a useful DRY strategy for use in
`beforeEach`
or
`it`
/
`test`
to get consistent reusable payloads for use in tests
-
TDD works well when it's very clear what work does and does not need to be done
-
Just like normal programming stay DRY
-
Mocking Vue component services is common via
`jest.mock('path/to/service', mockImplementation)`
## Integration
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment