Skip to content

Instantly share code, notes, and snippets.

View alicerocheman's full-sized avatar

Alice alicerocheman

View GitHub Profile
@alicerocheman
alicerocheman / coverage from file
Last active October 13, 2022 12:15
collect jest test coverage from specific file or folder
# File
yarn test path/to/file.test --coverage --collectCoverageFrom=path/to/file.ext
# Folder
yarn test path/to/folder --coverage --collectCoverageFrom='["path/to/folder/**/*.ext"]'
@alicerocheman
alicerocheman / ReactJS&TS.code-snippets
Last active October 13, 2022 10:17
Component creation, canon hook calling, test creation, log
{
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
// "Print to console": {
// "scope": "javascript,typescript",
[user]
email = xxx
name = xxx
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
[credential]
helper = cache
@alicerocheman
alicerocheman / README.md
Created September 16, 2019 09:08
vsCode sync

VSCode settings gist