Skip to content

Conversation

@mydea
Copy link
Member

@mydea mydea commented Aug 12, 2024

Instead of having to keep to separate lists of include/excludes, we now keep this in a single list and invert it when necessary.

This way, we should no longer have problems where tests are either run multiple times, or not in the correct env - just add the test to the browser list in ci-unit-tests.ts to make sure it is not run in multiple node versions unnecessarily. I also added this step to the new package checklist.

mydea added 2 commits August 12, 2024 13:19
Instead of having to keep to separate lists of include/excludes, we now keep this in a single list and invert it when necessary.
@mydea mydea self-assigned this Aug 12, 2024
'@sentry/astro',
'@sentry/nuxt',
'@sentry/nestjs',
'@sentry-internal/eslint-plugin-sdk',
Copy link
Member

Choose a reason for hiding this comment

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

A micro optimization here is to change eslint-plugin-sdk to only run test for whatever the node version of the local env is.

We can effectively treat it as a browser test then.

Copy link
Member Author

Choose a reason for hiding this comment

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

actually I guess we should technically run this in multiple node versions, as this is published? 🤔 and actually probably bump the min. node version of this to 16+ as it does not seem to work on 14... 😅 it's internal so I wouild not care about this too much 🤔 WDYT?

@mydea mydea merged commit 921e529 into develop Aug 14, 2024
@mydea mydea deleted the fn/ci-unit-tests-unify branch August 14, 2024 08:24
Zen-cronic pushed a commit to Zen-cronic/sentry-javascript that referenced this pull request Aug 26, 2024
Instead of having to keep to separate lists of include/excludes, we now
keep this in a single list and invert it when necessary.

This way, we should no longer have problems where tests are either run
multiple times, or not in the correct env - just add the test to the
`browser` list in `ci-unit-tests.ts` to make sure it is not run in
multiple node versions unnecessarily. I also added this step to the new
package checklist.
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.

5 participants