Important issues for Jest
Use document
object and methods like document.querySelectorAll
...
_setup.ts
import "jsdom-global/register";
Obviously for educative purposes only. | |
Furthermore, this DOESN'T activate BabelEdit permanently. | |
If you like the software, buy it, the devs deserve it. | |
Since I have no money to buy it, I discovered a workaround for unlimited trials. | |
It's quite a annoying workaround, but ... it works! | |
Firstly go to "c:\windows\system32\drivers\etc\" and open the "hosts" file in Notepad/Notepad++/VSCode/Sublime/Atom/whatever as admin (if you don't open it as admin, it won't let you save it). | |
Add this line at the end of the file: |
A mostly reasonable approach to React and JSX
This style guide is mostly based on the standards that are currently prevalent in JavaScript, although some conventions (i.e async/await or static class fields) may still be included or prohibited on a case-by-case basis. Currently, anything prior to stage 3 is not included nor recommended in this guide.
Code for arrows in CSS
.arrow-left {
display: inline-block;
position: relative;
width: 0;
height: 0;
Describe how to release package to NPM and publish gh-pages according to your commits automatically.
#awef
# run local scripts for executing ts file for deploying docs
npm i -D @types/node
npm i -D ts-node
This is a quick guide to OAuth2 support in GitHub for developers. This is still experimental and could change at any moment. This Gist will serve as a living document until it becomes finalized at Develop.GitHub.com.
OAuth2 is a protocol that lets external apps request authorization to private details in your GitHub account without getting your password. All developers need to register their application before getting started.