cypress-image-diff
pedalboard
cypress-image-diff | pedalboard | |
---|---|---|
2 | 23 | |
228 | 18 | |
1.3% | - | |
7.5 | 8.4 | |
14 days ago | about 1 month ago | |
Handlebars | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cypress-image-diff
-
Visual Regression Testing with Cypress 10
One plugin which Cypress suggests is the cypress-plugin-snapshots, but if you wander into Cypress’ plugin “market” you can see that there are more. After checking a few, I have decided to go with the cypress-image-diff-js plugin because it’s free, has a relatively simple api, seems to have a good update activity and a fair amount of GitHub stars.
-
Understanding and implementing Cypress snapshot testing
The cypress-image-diff module provides the compareSnapshot() Cypress command which provides functionality similar to that of the above commands.
pedalboard
-
Take control over your media loading
You can check out some demo examples in this Storybook, and see the code in the pedalboard repo.
-
Get Your TypeScript Coverage Report
Turns out there are tools for that and one of them is called typescript-coverage-report by Alex Canessa and I’m going to give it a try now and implement it in my Pedalboard monorepo.
-
Enhancing a Stylelint plugin (with some TDD love)
Also, all the code mentioned here can be found in the GitHub repository for this plugin. Put your testing helmet on, here we go!
-
Supporting SASS in your TS React project using TSC and esbuild
My Components package currently supports regular plain-old CSS (not that there’s anything wrong with it), and I thought it was a good time to introduce SASS to it, but the package is not a ordinary “Webpack-build-that-s#!t-for-me”. I’m using TSC (TypeScript Compiler) to generate the artifacts - What it means is that TSC is compiling 2 versions of the component, ESM and CJS. Once we have these, we’re taking the ESM outcome and bundling it using esbuild. You can read more about it here, but if to put it visually:
-
Testing Your Stylelint Plugin
In this post I will write a test suite for my @pedalboard/stylelint-plugin-craftsmanlint. We will be using jest-preset-stylelint to help us with that, and as a bonus, I’ll fortify the plugin’s TypeScript support.
-
Converting Your React Hook To TypeScript
For reference, below is an image of the Pagination component, and you can find it’s code here:
-
Visual Testing Your Components With Chromatic
Disclaimer - I’m going to apply the following steps on my Pedalboard monorepo. Working with monrepos is a bit different, and I will relate to that during the process, but be aware that applying Chromatic on a “simple” repo is even simpler.
-
Introducing esbuild To Your Monorepo
I have noticed that although the build process for packages under my “pedalboard” Monorepo creates different artifacts (CJS, ESM and types - you can read about it in more details in my “Hybrid NPM package through TypeScript Compiler (TSC)” post) it does not create a single bundle for the entire package.
-
Visual Regression Testing with Cypress 10
I will attempt to introduce this visual regression testing to my Pagination component from the @pedalboard/components package. So here we go.
-
Giving Jest-Preview a Spin
So let’s see how this tool works and what we can do with it. I’m gonna do my experimenting over my Pagination component which resides on the @pedalboard/components package. Let’s go!
What are some alternatives?
cypress-image-snapshot - Catch visual regressions in Cypress
lerna - :dragon: Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository.
cypress-plugin-snapshots - Plugin for snapshot tests in Cypress.io
ladle - 🥄 Develop, test and document your React story components faster.
snapshot - Adds value / object / DOM element snapshot testing support to Cypress test runner
testing-react - Testing utilities that allow you to reuse your Storybook stories in your React unit tests!
cypress-visual-regression - Module for adding visual regression testing to Cypress
ESLint - Find and fix problems in your JavaScript code.
Enzyme - JavaScript Testing utilities for React
nx - Smart Monorepos · Fast CI
vite - Next generation frontend tooling. It's fast!
storybook - Storybook is a frontend workshop for building UI components and pages in isolation. Made for UI development, testing, and documentation.