Things to look out for when writing Enzyme tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create Algebraic data types | |
interface Oreo { | |
kind: "oreo"; // dicriminate | |
} | |
interface HotDog { | |
kind: "hotdog"; | |
name: string; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"log": { | |
"prefix": "log", | |
"body": "console.log('${0}');", | |
"description": "Log output to console" | |
}, | |
"import": { | |
"prefix": "impo", | |
"body": "import ${1} from '${2}';${0}", | |
"description": "Creates es6 import" |