Cody Casterline ๐ณ๏ธโ๐ is a user on mastodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse.
If you don't, you can sign up here.
How do you manage tests in #typescript ? My `src` and `test` are siblings so I can't import a module from `src` into a module in `test` with out making the rootDir the parent of both, but I don't want to do that (since that will change the output folder structure) #code
Solutions involving scripting might not work since I'm on ~Windows~ and might need this to build from just a single `tsc` invocation.
@Anathema Curious if you found a solution here. I haven't gotten around to writing unit tests in #TypeScript yet, and it's a bit surprising that the tsconfig.json doesn't support declaring a test directory!
@NfNitLoop I didn't, for now I'm just not running the tests (only a very small % of our front-end code was had tests, so it isn't a big loss). I'm going to look into it later.
@NfNitLoop I didn't, for now I'm just not running the tests (only a very small % of our front-end code was had tests, so it isn't a big loss). I'm going to look into it later.