Skip to content

Instantly share code, notes, and snippets.

View Christopher96u's full-sized avatar
:octocat:
just give me a soda

Chris Christopher96u

:octocat:
just give me a soda
  • Australia
  • 12:17 (UTC +11:00)
View GitHub Profile

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@Christopher96u
Christopher96u / test.jest.config.md
Last active August 18, 2022 00:50
Config your test enviroment with Jest + React Testing Library for your React Projects

Install and configure Jest + React Testing Library

For React + Vite projects

  1. Install:
yarn add --dev jest babel-jest @babel/preset-env @babel/preset-react 
yarn add --dev @testing-library/react @types/jest jest-environment-jsdom
  1. Optional: If we use Fetch API in our project:
@Christopher96u
Christopher96u / settings.json
Created July 14, 2021 01:52
My VSCode config
{
"workbench.colorTheme": "Atom One Dark",
"workbench.iconTheme": "material-icon-theme",
"window.zoomLevel": 0.7,
"terminal.integrated.defaultProfile.linux": "zsh",
"editor.fontSize": 18,
"editor.fontLigatures": true,
//"editor.fontFamily": "Fira Code Medium",
"editor.fontFamily": "JetBrainsMonoMedium Nerd Font Mono",
"editor.minimap.enabled": false,
[user]
email = [email protected]
name = Christopher
[core]
filemode = false
autocrlf = false
[alias]
s = status -s -b
lg = log --oneline --decorate --all --graph
@Christopher96u
Christopher96u / cloudSettings
Last active November 7, 2020 17:43
vscode-settings
{"lastUpload":"2020-11-07T17:43:30.151Z","extensionVersion":"v3.4.3"}