Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a test for simple tsx #120

Merged
merged 2 commits into from
Nov 22, 2019
Merged

add a test for simple tsx #120

merged 2 commits into from
Nov 22, 2019

Conversation

tam5
Copy link
Collaborator

@tam5 tam5 commented Nov 20, 2019

This adds a missing test for #119.

It also includes a Dockerfile and some instructions that can ease testing.

Currently, the case provided in the test is <div>test</div>and divis not treated as a generic.

However, a case with multiple tags on a line like <div>test <span>me</span></div> would indeed highlight the span as a generic type. Still open to solutions for this, although I personally just recommend web-mode for this

Dockerfile Outdated

RUN mkdir -p /home/typescript.el
COPY . /home/typescript.el
WORKDIR /home/typescript.el
Copy link
Member

Choose a reason for hiding this comment

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

Super-minor nitpick: If we're running the tests as root anyway, it seems a bit strange to create a "user"-folder in /home for our content. How about just /typescript-mode ?

@josteink
Copy link
Member

Thanks for following up on my constant nagging for tests 😄

I only have one tiny nitpick. Consider it a suggestion, but not a merge-stopper in any way.

If you don't think it's worthwhile, you can just go ahead and merge 👍

@josteink
Copy link
Member

LGTM. 🙂

@josteink josteink merged commit fe63c57 into master Nov 22, 2019
@tam5 tam5 deleted the tsx-tests branch November 22, 2019 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants