Add test for map action receiver (replaces old viewport store test)#180
Add test for map action receiver (replaces old viewport store test)#180
Conversation
|
From my understanding the core problem is that jest did not (or does not) support ES6 modules (ES2015 modules, i.e. stuff with Although babel is the most powerful tool for such conversions I did not want to add it and it should be possible to transpile simple import statements using webpack only. I had a similar problem in another PR but despite some good suggestions it wasn't working. I found this comment that says that it should be possible at least for openlayer:
See also this. (btw: everything in openlayers is a ES6 module since 2 years.) Finally after hours, mostly due to trial and error, I think I found a working solution:
|
Here I tried adding a new test to replace
ViewportStore.test.tsafter #159.Unfortunately I get the following error:
@Janekdererste any idea how to fix this? This test might not be crazy important but it might happen we see the same problem in another place later on.