0.1.3 • Published 2 years ago
lucky-preact-element v0.1.3
vite preact typescript jest setup
NOTE TO SELF: keep this somewhere safe - you will need it again...
- npx create-vite my-app -- --template preact-ts
- npm i -D jest @types/jest @ts-jest
- npx ts-jest config:init
- npm i -D @testing-library/preact
Resources
- https://www.typescriptlang.org/tsconfig#jsxImportSource
- https://github.com/preactjs/preset-vite/issues/4
- https://github.com/fabien-ml/react-ts-vite-template
- https://github.com/The24thDS/vite-reactts17-chakra-jest-husky
- https://www.typescriptlang.org/tsconfig#jsx
- https://github.com/preactjs/jest-preset-preact/blob/master/src/preset.js
- https://github.com/preactjs/preset-vite/blob/415d882cffa29e1bf2afd715b14774c0ccbd0aa3/src/index.ts
- https://github.com/alloc/vite-react-jsx
- https://vitejs.dev/config/#esbuild
- https://github.com/preactjs/preset-vite/blob/main/src/index.ts