简体   繁体   中英

how to use A-Dir's jest to test B-Dir?

I want to create an auto report system.

The system can git clone project and auto-test the project.

I run system and the system is in A path

I clone a project in B path without npm install (I don't want waste time)

but I find that when I use

pathB > pathA/node_modules/.bin/jest

It doesn't work.

and

pathA > node_modules/.bin/jest

is OK.

BTW, eslint is OK

pathB > pathA/node_modules/.bin/eslint

I resolve my question, use jest need require other packages, especially when I jest react-native project.

So I have to run npm install .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM