OpenBCca / openbc-web

https://openbcca.github.io/openbc-web/
1 stars 2 forks source link

Update Alias #21

Closed SamHuo213 closed 11 months ago

SamHuo213 commented 11 months ago

What: Add alias to jest config

nam-m commented 11 months ago

By doing this, it will enable us to call tests from all folders inside src/ ?

umsu2 commented 11 months ago

By doing this, it will enable us to call tests from all folders inside src/ ?

no, i think it's just a syntactical sugar for referencing paths to be less verbose.

SamHuo213 commented 11 months ago

@umsu2 , @nam-m ,

We configured the following alias path in our tsconfig.json

image

Which allows for imports like the following:

image

This PR mirrors tsconfig in our tests

image