Skip to content

tests: add jsconfig path mapping integration test#3252

Closed
F3n67u wants to merge 2 commits intoremix-run:devfrom
F3n67u:tests/jsconfig
Closed

tests: add jsconfig path mapping integration test#3252
F3n67u wants to merge 2 commits intoremix-run:devfrom
F3n67u:tests/jsconfig

Conversation

@F3n67u
Copy link
Copy Markdown
Contributor

@F3n67u F3n67u commented May 19, 2022

Follow up of #3074 (comment)

  • Docs
  • Tests

Testing Strategy:

@F3n67u F3n67u changed the title test: add jsconfig path mapping integration test tests: add jsconfig path mapping integration test May 19, 2022
@MichaelDeBoey
Copy link
Copy Markdown
Member

@F3n67u As suggested by @kentcdodds in #3074 (comment):

[...] write the tests and add a .skip on them with a // TODO: comment explaining why they're skipped for now.

@MichaelDeBoey MichaelDeBoey requested a review from kentcdodds May 19, 2022 19:58
sourcemap?: boolean;
files: { [filename: string]: string };
template?: "cf-template" | "deno-template" | "node-template";
template?: "cf-template" | "deno-template" | "node-template" | "node-javascript-template";
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm... I think I'd prefer to duplicate than make a dependency here.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm ok with that 👍

@chaance
Copy link
Copy Markdown
Contributor

chaance commented Jan 24, 2023

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!

@chaance chaance closed this Jan 24, 2023
@MichaelDeBoey
Copy link
Copy Markdown
Member

I think these tests are still valuable to have

@F3n67u Could you please open a new PR with these tests?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants