Currently our canvas functionality is getting progressively more complex and it’s time to introduce tests to improve the quality of the project. In this lesson you will learn the following:

  • Jest-based test environment setup, including local and CI environments

  • Using unit tests to improve code coverage

  • Visual regression testing

  • Server-side rendering based on headless-gl, targets WebGL1

  • E2E testing base on Playwright, targets WebGL2 & WebGPU

  • E2E UI testing

  • Browser Compatibility Test based on BrowserStack

  • Render in WebWorker

All of the above project related code can be found under the __tests__ folder of our project.

Test environment

We choose Jest for our testing…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help