01/09/2022
A Svelte skeleton project with Jest setup, ready to start testing with Typescript support for test files. Jsdom is the default testing environment.
npm install
npm run dev
npm test
The test checks if the index.svelte page contains "Hello SvelteKit" upon render, try changing the string values in index.test.ts to make the test fail.
npm install --save-dev jest ts-jest @testing-library/svelte @testing-library/jest-dom svelte-jester @types/jest babel-jest @babel/preset-env
Also, the config files need to be updated.