/svelte-typescript-jest

Svelte starter with TypeScript and Jest testing support

Primary LanguageJavaScript


Svelte Logo TypeScript Logo Jest Logo

Svelte + TypeScript + Jest

This is a project template for Svelte apps. It's based on the official one from https://github.com/sveltejs/template. And some config files are based on https://github.com/dceddia/svelte-typescript-jest.

To create a new project based on this template using degit:

npx degit mszkb/svelte-typescript-jest svelte-app
cd svelte-app
npm install

Development

npm run dev

Unit-Testing

npm run test
npm run test:watch

Build for production and deploy

npm run build

and then deploy the contents of public folder.

Important Notice

svelte-jester version 2+ does not work with jest 27+. Do not try to upgrade until the issue has been resolved. See: