I'm running a test but not able to determine the exact line where it fails I put this code:
try {
my code
} catch (e) {
console.log('LineNumber', e.lineNumber);
console.log('Stack', e.stack);
}
Here is what I get:
LOG: 'LineNumber', undefined
LOG: 'Stack', 'TypeError: Cannot read property 'push' of null at MyClass.method (./MyClass.ts?:8:27925)
What is 8:27925
?
How to get the exact line number in a test with typescript?