We have moved to a monorepo with this, check https://github.com/kordis-leitstelle/kordis
tbd
tbd
tbd
Clone the project
git clone https://github.com/kordis-leitstelle/webapp.git
Install dependencies
npm i
Start the dev server
npm run dev
We use Vitest with jsdom for unit testing. It has similar APIs to Jest and integrates perfectly around Svelte with Component testing and is amazingly fast. Check out more about the decision to use Vitest over Jest here and the API Reference to learn more about the functionalities.
npm run test # run the tests in console
npm run test:ui # opens the Vitest UI in the browser to visualize the tests
For E2E tests we use Playwright. It has some benefits over Cypress.
- It supports multiple browser engines and native mobile testing,
- can be used with SaaS tools such as Browserstack,
- can test apps with multiple open tabs,
- can run tests in parallel out of the box,
- can test and handle IFrames properly.
npm run e2e
To test and play with isolated components you can use Storybook.
The latest Storybook of the main
branch is available here.
We use Chromatic as a Storybook hoster and to visualize UI changes.
You can also run Storybook locally:
npm run storybook