Created
September 8, 2020 12:05
-
-
Save djagya/05ac9a800341e8ca7cfd2b81837a3aa5 to your computer and use it in GitHub Desktop.
Jest config to debug in WebStorm when using TSDX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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