solid-testing-library
my-job-tracker
solid-testing-library | my-job-tracker | |
---|---|---|
4 | 1 | |
188 | 6 | |
0.0% | - | |
5.0 | 10.0 | |
28 days ago | over 1 year ago | |
TypeScript | JavaScript | |
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.
solid-testing-library
-
Testing in SolidJS
A team and I built an NPM package that can be installed into any SolidJS application to help visualize your signals and how they communicate. I wanted to test if the components would render during the development stage. I found Solid’s testing library and proceeded to follow the steps.
-
SolidJS vs. React: Comparing declarative UI libraries
With regards to third-party libraries, Solid does not have a lot yet, but it does have first-party libraries. Its first-party libraries are the equivalent of other popular libraries in other JavaScript libraries, such as Solid App Router for routing, Solid Testing Library for writing component tests, and Solid Transition Group for animations.
-
Testing your Solid.js code
Well, you certainly could do that, but not even I'm suggesting you should, because components are usually used in a DOM context and not solely in a component context, as rendering could introduce side effects. Instead, I want to point you at Solid's testing library.
-
Solid Update: March 2021
Solid Jest Solid Testing Library Storybook Example
my-job-tracker
-
Testing in SolidJS
After applying each step I realized that I was adding more dev dependencies and config files than I intended. The folder structure seemed convoluted especially because the product was an NPM package and didn’t have the file path of a full-stack application. Each component depended on the other and so I couldn’t evaluate an individual component. Which led to the biggest obstacle, importing and rendering components. I started searching for alternative solutions and I recall using Cypress in a different project I worked on.
What are some alternatives?
vite-plugin-solid - A simple integration to run solid-js with vite
solid-dev-tool - A SolidJS signal tracking dependency & structural visualizer developer tool
solid-jest - Jest preset for SolidJS
solid-router - A universal router for Solid inspired by Ember and React Router
solid - A declarative, efficient, and flexible JavaScript library for building user interfaces.
solid-storybook-example - Using Storybook with Solidjs
jest - Delightful JavaScript Testing.
solid - A declarative, efficient, and flexible JavaScript library for building user interfaces. [Moved to: https://github.com/solidui/solid]
React - The library for web and native user interfaces.
solid-transition-group - SolidJS components for applying animations when children elements enter or leave the DOM.