typewriter-editor / typewriter

A rich text editor based off of Quill.js and Ultradom, and using Svelte for UI.
MIT License
394 stars 32 forks source link

Fix tests #106

Closed jacwright closed 2 months ago

jacwright commented 2 years ago

Running npm test gives this error:

TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /.../typewriter/test/dom.test.ts

The fixes online all suggest to remove "type": "module", from package.json. Should we give up on modules and stick with commonjs output?

jacwright commented 2 years ago

Related to #100 and #101

taylorhadden commented 1 year ago

In some of my projects, I have a working setup with "type": "module", typescript, and Jest. I could convert the project and tests over.

Would you be interested in that?

jacwright commented 2 months ago

Vite & Vitest are the best today for working with ESM. Jest worked alright but still had more headaches than Vitest did.