testdriverai 4.0.62 → 4.0.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/profiler.js +1 -5
- package/package.json +1 -1
package/lib/profiler.js
CHANGED
|
@@ -10,11 +10,7 @@ const MAX_EXECUTION_TIME_MS = 30000;
|
|
|
10
10
|
|
|
11
11
|
// Helper function to check if the function is defined in your project files
|
|
12
12
|
function isProjectFunction() {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
// Check the stack trace to see if the file path belongs to your project
|
|
16
|
-
const projectRoot = process.cwd(); // Gets the current working directory of your project
|
|
17
|
-
return stackTrace && stackTrace.split('\n').some(line => line.includes(projectRoot));
|
|
13
|
+
return true;
|
|
18
14
|
}
|
|
19
15
|
|
|
20
16
|
// Override the apply method to add tracing and timing for project functions only
|