tests: add jsconfig path mapping integration test#3252
tests: add jsconfig path mapping integration test#3252F3n67u wants to merge 2 commits intoremix-run:devfrom
Conversation
|
@F3n67u As suggested by @kentcdodds in #3074 (comment):
|
| sourcemap?: boolean; | ||
| files: { [filename: string]: string }; | ||
| template?: "cf-template" | "deno-template" | "node-template"; | ||
| template?: "cf-template" | "deno-template" | "node-template" | "node-javascript-template"; |
There was a problem hiding this comment.
Not sure if we want an extra template for this though. 🤔
Maybe we should wait for the convert-to-javascript migration (see #3150) & call the migration before we do anything else in our tests?
There was a problem hiding this comment.
Hmmm... I think I'd prefer to duplicate than make a dependency here.
There was a problem hiding this comment.
This means we'll potentially have them double.
What about adding an extra (optional) key to FixtureInit that says if we want to use TypeScript or not.
If not, the createFixture function could run the migration automatically?
That way we don't need double templates + we can choose to use JS in our tests if we want to.
|
I noticed this is still a draft PR, so I'm closing for now while we clean up some old issues/PRs. Feel free to ping me if and when you're ready to see this through! |
|
I think these tests are still valuable to have @F3n67u Could you please open a new PR with these tests? |
Follow up of #3074 (comment)
Testing Strategy: