Closed ghost closed 7 months ago
I believe I misunderstood https://swc.rs/docs/migrating-from-tsc I thought it said which tsconfig fields it respects (making me think swc has partial tsconfig support).
However, that documentation is about configuring tsconfig for tsc to align with swc. That would make this issue a duplicate of https://github.com/swc-project/swc/issues/1348.
I'm going to close this.
We use 2 separate tsconfig.json files; one for coding (which is strict: tsconfig.json) and another one which is lax (for builds: tsconfig.build.json, which includes legacy code). The tsconfig.build.json extends on tsconfig.json like this:
Therefore, our existing jest config looks like this:
However, just swapping @swc/jest doesn't respect the tsconfig setting; it errors as:
I also tried to check if @swc/jest even uses the default tsconfig.json - but that's also not happening probably (at least I can't break it with syntax errors in tsconfig.json).
Would be nice if
@swc/jest
would support our use-case (specifying tsconfig path + tsconfig "extends" support).