Oh fun idea: a module that takes an object, serializes it to JSON and copies it to your clipboard - from the browser
-
-
(I often don't write tests for application code b/c it takes so long and is heaps brittle - stuff like this might help)
-
I'm adding jest's snapshot tests to my project to basically do this. Generate a snapshot, it fails with a diff if anything changes.
- 2 more replies
New conversation -
-
-
on chrome devtools you can just run `copy(foo)` (or JSON.stringify(foo) ) and it's directly copied to you clipboard :)
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
