Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Jest: Set testEnvironment to 'node' when targeting node #1030
Since the `testEnvironment` default of `'jsdom'` is only suitable when testing code intended to run in a browser environment. See: https://jestjs.io/docs/en/configuration.html#testenvironment-string Fixes #1020.