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

Implement a test using only production dependencies #281

Closed
mnkhouri opened this issue Aug 22, 2018 · 1 comment
Closed

Implement a test using only production dependencies #281

mnkhouri opened this issue Aug 22, 2018 · 1 comment

Comments

@mnkhouri
Copy link
Member

Some modules, such as Typescript, are optional at runtime. There should be a test that verifies that the program operates correctly when these optional dependencies are not present. #280 is an example of a bug that would be nice to catch in tests.

For example in travis.yml, there could be:

script:
  - npm prune --production && npm run depcheck

^^ This isn't the best solution because it modifies the Travis working directory. Ideally, that test would run in its own container, but the current travis.yml isn't set up that way (yet).

@mnkhouri
Copy link
Member Author

As stated in #282 (comment):

This one is hard. If the environment is complicated and stability is low, it may be not worth.

I agree it's probably not worth it. Unless someone has a neat idea for this, I'll close the issue in a week or two

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

1 participant