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 cron.js
console.log('hello world');
@lifeiscontent
lifeiscontent / README.md
Last active Mar 23, 2020
Action Mocking in Jest
View README.md

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: https://github.com/lifeiscontent/realworld

View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
You can’t perform that action at this time.