aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/spec-bundle.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/spec-bundle.js')
-rw-r--r--tests/unit/spec-bundle.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/unit/spec-bundle.js b/tests/unit/spec-bundle.js
new file mode 100644
index 0000000..964cf50
--- /dev/null
+++ b/tests/unit/spec-bundle.js
@@ -0,0 +1,9 @@
+Error.stackTraceLimit = Infinity;
+
+var testContext = require.context('./../../src', true, /\.spec\.ts/);
+
+function requireAll(requireContext) {
+ return requireContext.keys().map(requireContext);
+}
+
+var modules = requireAll(testContext); \ No newline at end of file