Lesson 11 - Test and server-side rendering
infinitecanvas.cc·4h
Flag this post

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...