Sam N
08/25/2021, 4:11 PMsst test
? It’s is taking upwards of 15 seconds with about 15 simple test cases.thdxr
08/25/2021, 4:16 PMsst test
is just calling into jest. I have noticed jest is extremely slow to start up, can you verify if each test is slow or if the startup is slowSam Hulick
08/25/2021, 4:18 PMSam Hulick
08/25/2021, 4:18 PMSam Hulick
08/25/2021, 4:19 PMSam Hulick
08/25/2021, 4:21 PMyarn test --watch
? does rerunning the tests take a long time when you modify your code?Sam N
08/25/2021, 4:24 PMSam N
08/25/2021, 4:26 PMRunning type checker
line after Linting source
.thdxr
08/25/2021, 4:29 PMtsconfig
what do you have under include
thdxr
08/25/2021, 4:29 PMSam N
08/25/2021, 4:29 PMlib
and src
thdxr
08/25/2021, 4:30 PMthdxr
08/25/2021, 4:30 PMSam N
08/25/2021, 4:30 PMSam N
08/25/2021, 4:30 PMSam N
08/25/2021, 4:35 PMthdxr
08/25/2021, 4:38 PMthdxr
08/25/2021, 4:39 PMthdxr
08/25/2021, 4:39 PMSam Hulick
08/25/2021, 4:43 PMsrc
. so that way, the root package.json is nothing but SST/CDK dependencies, and src/package.json
has everything related to the codeSam Hulick
08/25/2021, 4:44 PMthdxr
08/25/2021, 4:44 PMOmi Chowdhury
08/25/2021, 7:18 PMAh yeah that’s probably why it’s slow. We should probably be recommending a multi-package setup by default
Yeah like I said there’s very little benefit to having a lot of subpackages.Wouldn’t the benefit be faster jest runs? Or did I get the wrong end of the stick here?
Omi Chowdhury
08/25/2021, 7:19 PMthdxr
08/28/2021, 2:00 AMthdxr
08/28/2021, 2:00 AMthdxr
08/28/2021, 2:01 AM