How to use two tsconfigs.json?

Hey,

I have successfully implemented the Typescript Boilerplate, but I now want use a separate tsconfig.json for the tests folder, so that I don’t have to modify my global tsconfig.json.

However, when I tried to add a second tsconfig.json, Typescript could not compile the tests because it did not find codeceptjs or any globally defined methods.

My question would be if that is even possible and if so, how I would have to set up the second tsconfig.json to make this work?

Thanks for your help in advance!

Hi,
In my case a script in package.json helped
“test”: “TS_NODE_PROJECT=’./tests/tsconfig.test.json’ codeceptjs run”
Then run it with command npm run-script test