nathanjhood / ts-esbuild-react

A React starter project template with esbuild-scripts.
https://nathanjhood.github.io/ts-esbuild-react/
Other
0 stars 0 forks source link

adding the standard Jest testing config from create-react-app #17

Closed nathanjhood closed 2 months ago

nathanjhood commented 2 months ago

I just got this working, with some caveats... the implementation is somewhat tied to babel, which is used to transform the Javascript (or TS, JSX, whatever) into whatever ES/CommonJs type that Jest likes.

We can do that with esbuild's transform API, which is really fast. But, I haven't attempted that yet.

Let's merge the tests in so that yarn test is off the launch list - a big target! - with the aim to revisit the aforementioned transformation requirements, to be replaced with esbuild.transform() , at a later date.

nathanjhood commented 2 months ago

merged #18