Skip to content

Instantly share code, notes, and snippets.

View onethegarden's full-sized avatar
🎮
Focusing

Jeongwon Han onethegarden

🎮
Focusing
View GitHub Profile
@LauraBeatris
LauraBeatris / react-i18next.js
Last active October 30, 2023 11:48
Mock for react-i18next tests
const React = require('react');
const reactI18next = require('react-i18next');
/*
Also, if you're changing the language, add that mock function before your test suit
jest.mock('react-i18next', () => ({
useTranslation: () => ({
t: key => key,
i18n: { changeLanguage: jest.fn() },
@WebRTCGame
WebRTCGame / JavascriptBooks.md
Last active July 16, 2024 17:35
Free Javascript Books

Useful Links

23 Free JavaScript Books

A curated collection of awesome & free JavaScript books to help you learn the JavaScript programming language.

If you know of any other free JavaScript books that you think should be on this list, please let me know in the comments section and I will get them added.