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

Is there a way to run the tests on command? #2

Open
albizures opened this issue May 30, 2020 · 5 comments
Open

Is there a way to run the tests on command? #2

albizures opened this issue May 30, 2020 · 5 comments

Comments

@albizures
Copy link

So it can be added as another npm script

@Idered
Copy link
Owner

Idered commented May 31, 2020

In future it might work during tsc build but currently TypeScript compiler doesn't support plugins. Related issues:

This plugin is currently only for editor experience.

I have tested this with Next.js and Create React App. In both frameworks plugin work in editor but not in terminal.

I'll investigate this further but probably there's nothing I can do. It would be super cool to have tests run during build time.

@Idered Idered added the help wanted Extra attention is needed label May 31, 2020
@Idered
Copy link
Owner

Idered commented May 31, 2020

@albizures I could recreate this as eslint plugin - it would allow to run tests by running eslint command

@albizures
Copy link
Author

Wow, that's super cool! is this already public? so I can test it 🤗

By the way thanks for you work in this module 🙏

@Idered
Copy link
Owner

Idered commented Jun 1, 2020

@albizures nope, eslint version is not available yet

@albizures
Copy link
Author

oh sorry, until now I noticed I misread you comment, and I thought it was a work in progress already.

And just as a random thought, is this something that could be done using a jest transformer alongside babel?

@Idered Idered removed the help wanted Extra attention is needed label Jun 3, 2020
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

No branches or pull requests

2 participants