Im using jest, webpack and typescript in my project.
Im using worker-loader in order to load the worker.
one of my files is using a web worker as dependency.
foo.js
import timerWorker from '../worker.ts'
Now i'm testing the implementation of foo.
When I try testing I get:
foo › should create video player
TypeError: worker_ts_1.default is not a constructor
any suggestions about this?
Aucun commentaire:
Enregistrer un commentaire