Created
August 1, 2020 09:37
-
-
Save ElForastero/76a0fc8ff6f45fd83251be8ce021e2c4 to your computer and use it in GitHub Desktop.
TSDX jest setup that works with WebStorm
This file contains hidden or 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
// @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