Skip to content

Instantly share code, notes, and snippets.

@djagya
Created September 8, 2020 12:05
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 djagya/05ac9a800341e8ca7cfd2b81837a3aa5 to your computer and use it in GitHub Desktop.
Save djagya/05ac9a800341e8ca7cfd2b81837a3aa5 to your computer and use it in GitHub Desktop.
Jest config to debug in WebStorm when using TSDX
const {createJestConfig} = require('tsdx/dist/createJestConfig');
const {paths} = require('tsdx/dist/constants');
process.env.BABEL_ENV = 'test';
process.env.NODE_ENV = 'test';
const config = createJestConfig(undefined, paths.appRoot);
// For absolute imports
config.modulePaths = ["<rootDir>/src"];
module.exports = config;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment