Skip to content

Instantly share code, notes, and snippets.

@ElForastero
Created August 1, 2020 09:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ElForastero/76a0fc8ff6f45fd83251be8ce021e2c4 to your computer and use it in GitHub Desktop.
Save ElForastero/76a0fc8ff6f45fd83251be8ce021e2c4 to your computer and use it in GitHub Desktop.
TSDX jest setup that works with WebStorm
// @see https://github.com/formium/tsdx/issues/270#issuecomment-571042920
const { createJestConfig } = require('tsdx/dist/createJestConfig');
const { paths } = require('tsdx/dist/constants');
process.env.BABEL_ENV = 'test';
process.env.NODE_ENV = 'test';
module.exports = createJestConfig(undefined, paths.appRoot);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment