René's URL Explorer Experiment


Title: testing-javascript/03-javascript-mocking-fundamentals at master · Nav-2d/testing-javascript · GitHub

Open Graph Title: testing-javascript/03-javascript-mocking-fundamentals at master · Nav-2d/testing-javascript

X Title: testing-javascript/03-javascript-mocking-fundamentals at master · Nav-2d/testing-javascript

Description: Notes and annotations from Kent C. Dodds' Testing Javascript course: https://testingjavascript.com - testing-javascript/03-javascript-mocking-fundamentals at master · Nav-2d/testing-javascript

Open Graph Description: Notes and annotations from Kent C. Dodds' Testing Javascript course: https://testingjavascript.com - Nav-2d/testing-javascript

X Description: Notes and annotations from Kent C. Dodds' Testing Javascript course: https://testingjavascript.com - Nav-2d/testing-javascript

Opengraph URL: https://github.com/Nav-2d/testing-javascript/tree/master/03-javascript-mocking-fundamentals

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/tree/*name(/*path)
route-controllerfiles
route-actiondisambiguate
fetch-noncev2:ef4e40b4-f433-9101-b70c-990299749a25
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-id9E64:260014:52C70CD:6E5937C:6A5DC52A
html-safe-nonce6831f68477fe1e8c6a5bd53b32254d44d488192695041a905b4677d762711641
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTY0OjI2MDAxNDo1MkM3MENEOjZFNTkzN0M6NkE1REM1MkEiLCJ2aXNpdG9yX2lkIjoiMzk4MDcwMjk2MDE4ODI0NTI5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7205390243fb36a7115433c6d8878c47ef2b5be9d3849c851ab3f1539d4711cc
hovercard-subject-tagrepository:311563855
github-keyboard-shortcutsrepository,source-code,file-tree,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///files/disambiguate
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/Nav-2d/testing-javascript/tree/master/03-javascript-mocking-fundamentals
twitter:imagehttps://opengraph.githubassets.com/7d1680e7abeb54cb277a8824ba11caba1ba94c8d37a2241c288c014888d1894e/Nav-2d/testing-javascript
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7d1680e7abeb54cb277a8824ba11caba1ba94c8d37a2241c288c014888d1894e/Nav-2d/testing-javascript
og:image:altNotes and annotations from Kent C. Dodds' Testing Javascript course: https://testingjavascript.com - Nav-2d/testing-javascript
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
turbo-cache-controlno-cache
go-importgithub.com/Nav-2d/testing-javascript git https://github.com/Nav-2d/testing-javascript.git
octolytics-dimension-user_id22205721
octolytics-dimension-user_loginNav-2d
octolytics-dimension-repository_id311563855
octolytics-dimension-repository_nwoNav-2d/testing-javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id154195479
octolytics-dimension-repository_parent_nwolarrybotha/testing-javascript
octolytics-dimension-repository_network_root_id154195479
octolytics-dimension-repository_network_root_nwolarrybotha/testing-javascript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/Nav-2d/testing-javascript/tree/master/03-javascript-mocking-fundamentals#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNav-2d%2Ftesting-javascript%2Ftree%2Fmaster%2F03-javascript-mocking-fundamentals
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNav-2d%2Ftesting-javascript%2Ftree%2Fmaster%2F03-javascript-mocking-fundamentals
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Ffiles%2Fdisambiguate&source=header-repo&source_repo=Nav-2d%2Ftesting-javascript
Reloadhttps://github.com/Nav-2d/testing-javascript/tree/master/03-javascript-mocking-fundamentals
Reloadhttps://github.com/Nav-2d/testing-javascript/tree/master/03-javascript-mocking-fundamentals
Reloadhttps://github.com/Nav-2d/testing-javascript/tree/master/03-javascript-mocking-fundamentals
Nav-2d https://github.com/Nav-2d
testing-javascripthttps://github.com/Nav-2d/testing-javascript
larrybotha/testing-javascripthttps://github.com/larrybotha/testing-javascript
Notifications https://github.com/login?return_to=%2FNav-2d%2Ftesting-javascript
Fork 0 https://github.com/login?return_to=%2FNav-2d%2Ftesting-javascript
Star 0 https://github.com/login?return_to=%2FNav-2d%2Ftesting-javascript
Code https://github.com/Nav-2d/testing-javascript
Pull requests 0 https://github.com/Nav-2d/testing-javascript/pulls
Actions https://github.com/Nav-2d/testing-javascript/actions
Projects https://github.com/Nav-2d/testing-javascript/projects
Security and quality 0 https://github.com/Nav-2d/testing-javascript/security
Insights https://github.com/Nav-2d/testing-javascript/pulse
Code https://github.com/Nav-2d/testing-javascript
Pull requests https://github.com/Nav-2d/testing-javascript/pulls
Actions https://github.com/Nav-2d/testing-javascript/actions
Projects https://github.com/Nav-2d/testing-javascript/projects
Security and quality https://github.com/Nav-2d/testing-javascript/security
Insights https://github.com/Nav-2d/testing-javascript/pulse
https://github.com/Nav-2d/testing-javascript
testing-javascripthttps://github.com/Nav-2d/testing-javascript/tree/master
Historyhttps://github.com/Nav-2d/testing-javascript/commits/master/03-javascript-mocking-fundamentals
https://github.com/Nav-2d/testing-javascript/commits/master/03-javascript-mocking-fundamentals
testing-javascripthttps://github.com/Nav-2d/testing-javascript/tree/master
..https://github.com/Nav-2d/testing-javascript/tree/master
srchttps://github.com/Nav-2d/testing-javascript/tree/master/03-javascript-mocking-fundamentals/src
srchttps://github.com/Nav-2d/testing-javascript/tree/master/03-javascript-mocking-fundamentals/src
01-override-object-props-to-mock-with-monkey-patching.no-framework.jshttps://github.com/Nav-2d/testing-javascript/blob/master/03-javascript-mocking-fundamentals/01-override-object-props-to-mock-with-monkey-patching.no-framework.js
01-override-object-props-to-mock-with-monkey-patching.no-framework.jshttps://github.com/Nav-2d/testing-javascript/blob/master/03-javascript-mocking-fundamentals/01-override-object-props-to-mock-with-monkey-patching.no-framework.js
01-override-object-props-to-mock-with-monkey-patching.test.jshttps://github.com/Nav-2d/testing-javascript/blob/master/03-javascript-mocking-fundamentals/01-override-object-props-to-mock-with-monkey-patching.test.js
01-override-object-props-to-mock-with-monkey-patching.test.jshttps://github.com/Nav-2d/testing-javascript/blob/master/03-javascript-mocking-fundamentals/01-override-object-props-to-mock-with-monkey-patching.test.js
02-ensure-functions-are-called-correctly-with-javascript-mocks.no-framework.jshttps://github.com/Nav-2d/testing-javascript/blob/master/03-javascript-mocking-fundamentals/02-ensure-functions-are-called-correctly-with-javascript-mocks.no-framework.js
02-ensure-functions-are-called-correctly-with-javascript-mocks.no-framework.jshttps://github.com/Nav-2d/testing-javascript/blob/master/03-javascript-mocking-fundamentals/02-ensure-functions-are-called-correctly-with-javascript-mocks.no-framework.js
02-ensure-functions-are-called-correctly-with-javascript-mocks.test.jshttps://github.com/Nav-2d/testing-javascript/blob/master/03-javascript-mocking-fundamentals/02-ensure-functions-are-called-correctly-with-javascript-mocks.test.js
02-ensure-functions-are-called-correctly-with-javascript-mocks.test.jshttps://github.com/Nav-2d/testing-javascript/blob/master/03-javascript-mocking-fundamentals/02-ensure-functions-are-called-correctly-with-javascript-mocks.test.js
03-restore-original-implementation-of-a-mocked-function.no-framework.jshttps://github.com/Nav-2d/testing-javascript/blob/master/03-javascript-mocking-fundamentals/03-restore-original-implementation-of-a-mocked-function.no-framework.js
03-restore-original-implementation-of-a-mocked-function.no-framework.jshttps://github.com/Nav-2d/testing-javascript/blob/master/03-javascript-mocking-fundamentals/03-restore-original-implementation-of-a-mocked-function.no-framework.js
03-restore-original-implementation-of-a-mocked-function.test.jshttps://github.com/Nav-2d/testing-javascript/blob/master/03-javascript-mocking-fundamentals/03-restore-original-implementation-of-a-mocked-function.test.js
03-restore-original-implementation-of-a-mocked-function.test.jshttps://github.com/Nav-2d/testing-javascript/blob/master/03-javascript-mocking-fundamentals/03-restore-original-implementation-of-a-mocked-function.test.js
04-mock-a-js-module-in-a-test.no-framework.jshttps://github.com/Nav-2d/testing-javascript/blob/master/03-javascript-mocking-fundamentals/04-mock-a-js-module-in-a-test.no-framework.js
04-mock-a-js-module-in-a-test.no-framework.jshttps://github.com/Nav-2d/testing-javascript/blob/master/03-javascript-mocking-fundamentals/04-mock-a-js-module-in-a-test.no-framework.js
04-mock-a-js-module-in-a-test.test.jshttps://github.com/Nav-2d/testing-javascript/blob/master/03-javascript-mocking-fundamentals/04-mock-a-js-module-in-a-test.test.js
04-mock-a-js-module-in-a-test.test.jshttps://github.com/Nav-2d/testing-javascript/blob/master/03-javascript-mocking-fundamentals/04-mock-a-js-module-in-a-test.test.js
05-make-a-shared-mock-module.no-framework.jshttps://github.com/Nav-2d/testing-javascript/blob/master/03-javascript-mocking-fundamentals/05-make-a-shared-mock-module.no-framework.js
05-make-a-shared-mock-module.no-framework.jshttps://github.com/Nav-2d/testing-javascript/blob/master/03-javascript-mocking-fundamentals/05-make-a-shared-mock-module.no-framework.js
05-make-a-shared-mock-module.test.jshttps://github.com/Nav-2d/testing-javascript/blob/master/03-javascript-mocking-fundamentals/05-make-a-shared-mock-module.test.js
05-make-a-shared-mock-module.test.jshttps://github.com/Nav-2d/testing-javascript/blob/master/03-javascript-mocking-fundamentals/05-make-a-shared-mock-module.test.js
README.mdhttps://github.com/Nav-2d/testing-javascript/blob/master/03-javascript-mocking-fundamentals/README.md
README.mdhttps://github.com/Nav-2d/testing-javascript/blob/master/03-javascript-mocking-fundamentals/README.md
package-lock.jsonhttps://github.com/Nav-2d/testing-javascript/blob/master/03-javascript-mocking-fundamentals/package-lock.json
package-lock.jsonhttps://github.com/Nav-2d/testing-javascript/blob/master/03-javascript-mocking-fundamentals/package-lock.json
package.jsonhttps://github.com/Nav-2d/testing-javascript/blob/master/03-javascript-mocking-fundamentals/package.json
package.jsonhttps://github.com/Nav-2d/testing-javascript/blob/master/03-javascript-mocking-fundamentals/package.json
README.mdhttps://github.com/Nav-2d/testing-javascript/tree/master/03-javascript-mocking-fundamentals#readme
https://github.com/Nav-2d/testing-javascript/tree/master/03-javascript-mocking-fundamentals#javascript-mocking-fundamentals
1. Override Object Properties to Mock with Monkey-patching in JavaScripthttps://github.com/Nav-2d/testing-javascript/tree/master/03-javascript-mocking-fundamentals#1-override-object-properties-to-mock-with-monkey-patching-in-javascript
2. Ensure Functions are Called Correctly with JavaScript Mockshttps://github.com/Nav-2d/testing-javascript/tree/master/03-javascript-mocking-fundamentals#2-ensure-functions-are-called-correctly-with-javascript-mocks
3. Restore the Original Implementation of a Mocked JavaScript Function with jest.spyOnhttps://github.com/Nav-2d/testing-javascript/tree/master/03-javascript-mocking-fundamentals#3-restore-the-original-implementation-of-a-mocked-javascript-function-with-jestspyon
4. Mock a JavaScript module in a testhttps://github.com/Nav-2d/testing-javascript/tree/master/03-javascript-mocking-fundamentals#4-mock-a-javascript-module-in-a-test
5. Make a shared JavaScript mock modulehttps://github.com/Nav-2d/testing-javascript/tree/master/03-javascript-mocking-fundamentals#5-make-a-shared-javascript-mock-module
https://github.com/Nav-2d/testing-javascript/tree/master/03-javascript-mocking-fundamentals#1-override-object-properties-to-mock-with-monkey-patching-in-javascript
01-override-object-props-to-mock-with-monkey-patching.no-framework.jshttps://github.com/Nav-2d/testing-javascript/blob/master/03-javascript-mocking-fundamentals/01-override-object-props-to-mock-with-monkey-patching.no-framework.js
https://github.com/Nav-2d/testing-javascript/tree/master/03-javascript-mocking-fundamentals#2-ensure-functions-are-called-correctly-with-javascript-mocks
02-ensure-functions-are-called-correctly-with-javascript-mocks.test.jshttps://github.com/Nav-2d/testing-javascript/blob/master/03-javascript-mocking-fundamentals/02-ensure-functions-are-called-correctly-with-javascript-mocks.test.js
https://github.com/Nav-2d/testing-javascript/tree/master/03-javascript-mocking-fundamentals#3-restore-the-original-implementation-of-a-mocked-javascript-function-with-jestspyon
03-restore-original-implementation-of-a-mocked-function.test.jshttps://github.com/Nav-2d/testing-javascript/blob/master/03-javascript-mocking-fundamentals/03-restore-original-implementation-of-a-mocked-function.test.js
https://github.com/Nav-2d/testing-javascript/tree/master/03-javascript-mocking-fundamentals#4-mock-a-javascript-module-in-a-test
04-mock-a-js-module-in-a-test.test.jshttps://github.com/Nav-2d/testing-javascript/blob/master/03-javascript-mocking-fundamentals/04-mock-a-js-module-in-a-test.test.js
https://github.com/Nav-2d/testing-javascript/tree/master/03-javascript-mocking-fundamentals#5-make-a-shared-javascript-mock-module
05-make-a-shared-mock-module.test.jshttps://github.com/Nav-2d/testing-javascript/blob/master/03-javascript-mocking-fundamentals/05-make-a-shared-mock-module.test.js
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.