#worried about having to test non-exported function

5 messages · Page 1 of 1 (latest)

fathom matrix
#

my boss told me that I have to test every single function in my file but I have a couple of functions that aren't exported. do you guys know any way that I could test non-exported functions or is it not possible in typescript?

quick garden
#

Move it to another file and export it from there?

#

Or just test the public API and show that it's tested by coverage

#

I don't see a reason to test every single function directly

fathom matrix
#

Ok thanks. I'll just test the public api and hopefully he'll understand lol