Skip to content

Instantly share code, notes, and snippets.

Looking for open source projects to contribute to

Aaron Reisman lifeiscontent

Looking for open source projects to contribute to
View GitHub Profile
View nameConfig.json
"remoteUser" : "${localEnv:USER}",
"remoteEnv" : {
"COLORTERM" : "${localEnv:COLORTERM}",
"DISPLAY" : "${localEnv:DISPLAY}",
"LANG" : "${localEnv:LANG}",
"SHELL" : "${localEnv:SHELL}",
"SSH_AUTH_SOCK" : "${localEnv:SSH_AUTH_SOCK}",
lifeiscontent / callAll.ts
Last active Oct 30, 2020
Typescript callAll function
View callAll.ts
const callAll = <Args extends readonly unknown[]>(
...fns: readonly (((...args: Args) => void) | undefined)[]
) => (...args: Args): void => fns.forEach((fn) => fn?.(...args));
export default callAll;
View index.html
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
lifeiscontent /
Last active Mar 23, 2020
Action Mocking in Jest

Action Mocking in Jest with Storybook.

This describes how to use storybook stories as fixtures in jest, and how to mock action to test behavior in the story.

Link to full example:

View cron.js
console.log('hello world');