DEV Community

Writing unit tests for Svelte Series' Articles

Back to Daniel Irvine ๐Ÿณ๏ธโ€๐ŸŒˆ's Series
Writing unit tests for Svelte (Introduction)

Writing unit tests for Svelte (Introduction)

82
Comments
3 min read
Setting up a Svelte test environment

Setting up a Svelte test environment

38
Comments 10
9 min read
Mounting components and asserting on the DOM

Mounting components and asserting on the DOM

15
Comments 1
6 min read
Testing the onMount callback

Testing the onMount callback

12
Comments
3 min read
Testing Svelte stores and mocking dependencies

Testing Svelte stores and mocking dependencies

28
Comments 14
6 min read
Mocking Svelte components

Mocking Svelte components

14
Comments 1
8 min read
Testing Svelte context with component hierarchies

Testing Svelte context with component hierarchies

15
Comments 1
4 min read
Tips for writing great Svelte tests

Tips for writing great Svelte tests

15
Comments 12
5 min read