Skip to content

Instantly share code, notes, and snippets.

View pablocattaneo's full-sized avatar

Pablo Cattaneo pablocattaneo

View GitHub Profile
# git show {hash}
git show a2c25061
# Source: https://stackoverflow.com/a/14167343/3599272
git branch my-branch-name
git checkout -b my-branch-name # create the branch and make chekcout on it
yarn list --pattern <package_name>
## Source: https://stackoverflow.com/a/66796198/3599272
git show <COMMIT>
# Source: https://stackoverflow.com/a/37830793/3599272
For example:
expect(wrapper.find('.invalid-feedback.d-block').exists()).toBe(true)
echo $SHELL
Source: https://stackoverflow.com/a/3327022/3599272
expect(typeof controller.createUser()).toBe('object')
Using toEqual method, for example:
expect(data).toEqual({one: 1, two: 2});
# Access mysql client line command
/opt/lampp/bin/mysql -u root