Closed MasatoMakino closed 9 months ago
canvasを利用する場合、threadsをfalseに設定しなければならない。 https://github.com/MasatoMakino/pixijs-particle-waypoint/blob/main/vitest.config.ts 並列処理によってランダムにエラーが発生する。
https://vitest.dev/config/#threads グローバル変数に依存せず、canvasで問題が発生する場合は pool.forksを使用することで問題が解決することがある。
この変更は、このリポジトリで行うのではなくフォークすべきかもしれない。
https://github.com/MasatoMakino/minimal-test-environment-threejs に引き継ぎ
canvasを利用する場合、threadsをfalseに設定しなければならない。 https://github.com/MasatoMakino/pixijs-particle-waypoint/blob/main/vitest.config.ts 並列処理によってランダムにエラーが発生する。