Testing components requires a different mindset and tools than testing regular javascript files. This repository includes some examples that highlight different ways of querying elements, testing rendering and dealing with events.
npm install
: Install required dependenciesnpm run storybook
: Run storybook to view componentsnpm test
: Run all available testsnpm run test:watch
: Automatically re-run tests when .spec and .svelte files change