Vlsir / Hdl21Schematics

Hdl21 Schematics
BSD 3-Clause "New" or "Revised" License
14 stars 2 forks source link

Unit Testing #9

Open dan-fritchman opened 1 year ago

dan-fritchman commented 1 year ago

It's tough for GUI thing. And having the TypeScript type-checker certainly helps. But it's about time to sort out what can be unit tested, and how to do it.

Most testable:

Maybe this works best if those portions are arranged as a separate NPM package/ TypeScript subproject.

Least testable:

All of those are doable, and in fact regularly done by plenty of GUI projects. But much harder.

As for "how to do it": unlike in, say, Python, there's a lotta testing libraries out there. Jest https://jestjs.io/docs/getting-started still seems to be the most popular, and "most popular" is a very important criteria here for its alignment with "most community support".