runem / lit-analyzer

Monorepository for tools that analyze lit-html templates
MIT License
318 stars 36 forks source link

Add tests for external modules #115

Closed FelixSchuSi closed 4 years ago

FelixSchuSi commented 4 years ago

Tests for the traversal of external modules were added. In order to be able to detect external modules, the "isSourceFileFromExternalLibrary" function now gets overwritten when testing.

I also changed the way the newDepth is determined in module traversal since it didnt work as expected when going from an interal to an external module when the first external module was not a facade module.

runem commented 4 years ago

Looks great! Thanks for the contribution ☀️