Command
npx jest --initExplanation
Creates a jest.config.js file with interactive configuration setup.
Examples
Initialize Jest config
npx jest --initInitialize with TypeScript support
npx jest --init --typescriptnpx jest --initCreates a jest.config.js file with interactive configuration setup.
Initialize Jest config
npx jest --initInitialize with TypeScript support
npx jest --init --typescript