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

Run unit tests against TypeScript files #102

Open
wilgert opened this issue Apr 17, 2020 · 3 comments
Open

Run unit tests against TypeScript files #102

wilgert opened this issue Apr 17, 2020 · 3 comments

Comments

@wilgert
Copy link
Collaborator

wilgert commented Apr 17, 2020

Currently unit tests are ran against one of the generated JavaScript bundles.
I think we want to run our tests against the TypeScript files, this will also give us insight into the code coverage.

@se-panfilov
Copy link
Owner

Well, honestly I already do it in one click in WebStorm.

I think that it's a kind of extra to have a lot of npm tasks in package.json such as "test:netherlands", "test:malta", etc.

What is your suggestion?

@se-panfilov
Copy link
Owner

Also I'd like to mention that existed tests are not really unit tests - they are functional tests, which test how the lib works against certain list of VAT in certain situations.

So I don't think that we can talk about the "coverage" atm: we don't have unit tests

@se-panfilov
Copy link
Owner

Also, you can run tests from you cli like this:

jest --testNamePattern=^Andorra

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

No branches or pull requests

2 participants