Jest: How to set rootDir as process.cwd() + '/..'

Created on 24 Jul 2017  路  1Comment  路  Source: facebook/jest

My application was setup as a mono repo. This is the structure:

\mono-repo
|--core
|--app1
|--app2

I run jest at app2. But I also want to run all tests from core. So here is my config

{
    rootDir: process.pwd() + '/..',
    roots: [ 'core', 'app2' ],
}

But it didn't work.
Could you give me any idea for this case?

>All comments

Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions. Thank you :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stephenlautier picture stephenlautier  路  3Comments

samzhang111 picture samzhang111  路  3Comments

withinboredom picture withinboredom  路  3Comments

paularmstrong picture paularmstrong  路  3Comments

ticky picture ticky  路  3Comments