MasatoMakino / minimal-test-environment-jest-threejs

Minimal example for unit testing three.js with jest
MIT License
0 stars 0 forks source link

vitestへの移行 #8

Closed MasatoMakino closed 9 months ago

MasatoMakino commented 1 year ago

canvasを利用する場合、threadsをfalseに設定しなければならない。 https://github.com/MasatoMakino/pixijs-particle-waypoint/blob/main/vitest.config.ts 並列処理によってランダムにエラーが発生する。

MasatoMakino commented 9 months ago

https://vitest.dev/config/#threads グローバル変数に依存せず、canvasで問題が発生する場合は pool.forksを使用することで問題が解決することがある。

MasatoMakino commented 9 months ago

この変更は、このリポジトリで行うのではなくフォークすべきかもしれない。

MasatoMakino commented 9 months ago

https://github.com/MasatoMakino/minimal-test-environment-threejs に引き継ぎ