This is a project template for a TypeScript project with Jest testing framework. It is set up with tsup
for bundling, eslint
for linting, and prettier
for code formatting.
To install this project template, clone the repository and run the following command to install all dependencies:
pnpm i
This project template includes the following scripts:
dev
: runstsup
to bundle the source files and watch for changes.test
: runs Jest to execute the tests.build
: runstsup
to build the production-ready bundle.
This project template includes the following dev dependencies:
@types/jest
: provides type definitions for Jest.@types/node
: provides type definitions for Node.js.@typescript-eslint/eslint-plugin
: provides additional ESLint rules for TypeScript.@typescript-eslint/parser
: allows ESLint to understand TypeScript syntax.eslint
: lints the code according to the configured rules.eslint-config-prettier
: disables ESLint rules that conflict with Prettier.jest
: the testing framework.prettier
: formats the code according to the configured rules.ts-jest
: allows Jest to work with TypeScript code.tsup
: the bundler.typescript
: the TypeScript compiler.
Use Jest Runner to Debug tests and other code.
This project is licensed under the ISC License.