Choose your test environment, whether to use the ts-jest preset, and coverage collection options, and the tool outputs a jest.config.js.
Yes, if you enable the ts-jest preset, install ts-jest and typescript as dev dependencies — the config alone does not install them.
Yes, as a starting point — adjust the values to match your actual project structure and tooling versions.
It follows the tool's documented format, but always run your build once after adding it to confirm your specific setup is happy.