Skip to content

Instantly share code, notes, and snippets.

@nathantqn
nathantqn / RNMultipleTargetsInstructions.md
Created November 12, 2018 04:04 — forked from jacks205/RNMultipleTargetsInstructions.md
Settings up multiple app targets in React-Native
@nathantqn
nathantqn / zsh.md
Created September 30, 2018 13:09 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu
@nathantqn
nathantqn / media-query.css
Created August 23, 2018 02:01 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@nathantqn
nathantqn / enzyme_render_diffs.md
Created July 20, 2018 09:19 — forked from fokusferit/enzyme_render_diffs.md
Difference between Shallow, Mount and render of Enzyme

Shallow

Real unit test (isolation, no children render)

Simple shallow

Calls:

  • constructor
  • render
@nathantqn
nathantqn / TestSetupExampleCRAEnzymeChaiMocka.md
Created July 11, 2018 07:36 — forked from busypeoples/TestSetupExampleCRAEnzymeChaiMocka.md
Mocha/Chai/Enyzme test setup with create-react-app

Basic setup for using Enzyme/Mocha/Chai with create-react-app

This is a temporary solution. Might change in the near future, this depends on how create-react-app will implement testing.

create-react-app quick-test-example

cd quick-test-example

npm run eject