...
A common best practice is to analyze your project files via the output of a command like tree -I 'node_modules|sl-dry-run-output|sl_dist' -P "*.[jt]s*"
When executed from the root folder of your project folder, it provides a detailed list of javascript and typescript files and helps to define accurate Ignore Rules as described below based on the detailed list of javascript and typescript files the agent will find.
Ignoring test files
For example, a common best practice is to exclude all the test files from the Build Scan.
...