Skip to content
tsmx

tsmx

pragmatic IT

  • start
  • npm-packages

Jest

Convert an existing NodeJS project from CommonJS to ESM / ECMAScript

20. August 202325. May 2023 by tsmx-dev

A quick guide for converting your existing NodeJS projects from CommonJS to ESM/ECMAScript. Including Express, Jest, Supertest and ESLint.

Read more

Categories NodeJS Tags CommonJS, convert, ECMAScript, ES6, eslint, ESM, JavaScript, Jest, project

Full code-coverage with Jest

10. January 20223. January 2022 by tsmx-dev

A guided tour on how to achieve the most complete code-coverage with Jest in your NodeJS projects and an some thoughts on why this is not necessarily the primary target.

Read more

Categories NodeJS Tags Jest, NodeJS, testing

Testing process.exit with Jest in NodeJS

27. September 202117. September 2021 by tsmx-dev

Demonstrating a pragmatic way on how to test code paths resulting in process.exit using the Jest test library.

Read more

Categories NodeJS Tags JavaScript, Jest, NodeJS, testing

Recent Posts

  • Running Oracle DB in Docker using the official container image – in minutes, free edition available
  • Integrating GCP Secret Manager with App Engine environment variables
  • Secure configuration management for a GCP cloud function in Node.js
  • Default Node.js process.env variables in GCP cloud functions and app engine
  • CommonJS vs. ESM/ECMAScript cheat-sheet

Categories

  • Cloud (1)
  • Development (5)
  • GCP (4)
  • JavaScript (2)
  • MongoDB (3)
  • NodeJS (18)
  • Oracle DB (1)

Archives

  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • May 2023
  • November 2022
  • June 2022
  • May 2022
  • April 2022
  • January 2022
  • November 2021
  • October 2021
  • September 2021
  • June 2021
  • March 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020

Links

Privacy Policy | Imprint

© 2023 tsmx • Built with GeneratePress