How do I exclude unit tests from SAST scan?

Hi guys, any of you guys successfully excluded unit test components from scan? How do you do it?

My yml file right now have something like this for files exclusions: -

'-scanExclusion "fortify-scripts,*spec.ts"

for folder of "fortify-scripts" I managed to exclude but not unit tests. Any idea?

Tags: