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

Fix npm test when running test containers #1210

Merged
merged 1 commit into from
Aug 12, 2024
Merged

Conversation

bigmontz
Copy link
Contributor

@bigmontz bigmontz commented Aug 9, 2024

The tests were failing because Deno integration tests can't access a database.
The problem happens because tests are using testcontainers by default and Deno doesn't have support for it yet.

So, the problem is circumvented by skipping the Deno integration tests for the case we are using testcontainers.
This is not a big issue since,

  1. Pipelines and testkit doesn't make use of testcontainers, so the tests will not be skipped in important places.
  2. The amount of testing scenarios are quite small and not likely to change in behaviour.

The tests were failing because Deno integration tests can't access a
database.
The problem happens because tests are using `TestContainers`
by default and Deno doesn't have support for it yet.

So, the problem is circuvented by skipping the Deno integration tests
for the case we are using `testcontainers`.
This is not a big issue since,

1. Pipelines and testkit doesn't make use of testcontainers, so the
   tests will not be skipped in important places.
2. The amount of testing scenarios are quite small and not likely to
   change in behaviour.
@bigmontz bigmontz assigned bigmontz and unassigned bigmontz Aug 9, 2024
@bigmontz bigmontz requested a review from MaxAake August 9, 2024 13:00
Copy link
Contributor

@MaxAake MaxAake left a comment

Choose a reason for hiding this comment

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

🥇

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