* Execute all unit tests in the current directory.
(specFiles)
| 19 | * Execute all unit tests in the current directory. |
| 20 | */ |
| 21 | function runTests(specFiles) { |
| 22 | // tslint:disable-next-line:no-require-imports |
| 23 | const jasmineConstructor = require('jasmine'); |
| 24 | |
| 25 | Error.stackTraceLimit = Infinity; |
| 26 | |
| 27 | process.on('unhandledRejection', e => { |
| 28 | throw e; |
| 29 | }); |
| 30 | |
| 31 | const runner = new jasmineConstructor(); |
| 32 | runner.loadConfig({spec_files: specFiles, random: false}); |
| 33 | runner.execute(); |
| 34 | } |
| 35 | |
| 36 | function expectArraysClose(actual, expected) { |
| 37 | const actualValues = actual instanceof Array ? actual : actual.dataSync(); |
no outgoing calls
no test coverage detected