Component Testing in Svelte

This page summarizes the projects mentioned and recommended in the original post on dev.to

SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • ts-jest

    A Jest transformer with source map support that lets you use Jest to test projects written in TypeScript.

  • ts-jest: A transformer for handling TypeScript files.

  • svelte-jester

    A Jest transformer for Svelte - compile your components before importing them into tests.

  • svelte-jester: precompiles Svelte components before tests.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • unit-testing-svelte

  • You can find these examples in this repo

  • vite

    Next generation frontend tooling. It's fast!

  • There are other ways of creating a Svelte project, but I prefer using Vite. One of the reasons that I prefer using Vite is that SvelteKit will use it as well. I'm also a big fan of pnpm, but you can use your preferred package manager. Make sure you follow Vite's docs on starting a new project using npm or yarn.

  • SvelteKit

    web development, streamlined (by sveltejs)

  • There are other ways of creating a Svelte project, but I prefer using Vite. One of the reasons that I prefer using Vite is that SvelteKit will use it as well. I'm also a big fan of pnpm, but you can use your preferred package manager. Make sure you follow Vite's docs on starting a new project using npm or yarn.

  • jest

    Delightful JavaScript Testing.

  • Jest: I'll be using this framework for testing. It's the one that I know best, and feel more comfortable with. Because I'm using TypeScript, I need to install its type definitions too.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Test Svelte Component Using Vitest & Playwright

    8 projects | dev.to | 27 Jul 2022
  • In-Depth guide for TypeScript Library

    4 projects | dev.to | 13 Nov 2023
  • A guide to visual debugging with Vitest Preview

    3 projects | dev.to | 26 Jan 2023
  • Testing with Jest and React Testing Library

    6 projects | dev.to | 18 Sep 2022
  • Using Playwright Test to run Unit Tests

    5 projects | /r/javascript | 20 Jun 2022