diff --git a/test/api.js b/test/api.js
index 052f929437..e34edd5af7 100644
--- a/test/api.js
+++ b/test/api.js
@@ -2,6 +2,8 @@
  * API TESTS
  */
 
+Error.stackTraceLimit = Infinity;
+
 // During the test the env variable is set to test
 process.env.NODE_ENV = 'test';