I have some typescript tests which are running fine using Chutzpa to run them.
Today I added a property of type Map<K,V>
to my model being tested and now all tests which use that model fail when I run them using the headless (PhantomJS) runner. They do, however, work if I tell Chutzpah to run them in the browser (chrome)
The error I get is
Can't find variable: Map in 'some path'
but the JS files are removed by Chutzpah so I can't open them and see what the issue is.
I suspect that it might be some typescript version issue (the headless runner is using an older typescript version maybe) but am not sure how to either prove this or make the headless runner use a specified version of typescript.