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

feat: plug-and-play test environment #66

Merged
merged 6 commits into from
Dec 1, 2023
Merged

feat: plug-and-play test environment #66

merged 6 commits into from
Dec 1, 2023

Conversation

noomorph
Copy link
Collaborator

@noomorph noomorph commented Dec 1, 2023

This pull request migrates jest-metadata to use jest-environment-emit.

This change enables you to plug as many environment listeners as you need, e.g.:

/** @type {import('jest').Config} */
module.exports = {
  // ...
  testEnvironment: 'jest-metadata/environment-node',
  testEnvironmentOptions: {
    eventListeners: [
      './simple-subscription-1.js',
      ['./parametrized-subscription-2.js', { some: 'options' }],
    ]
  },
};

@noomorph noomorph merged commit 9322fba into master Dec 1, 2023
11 checks passed
@noomorph noomorph deleted the beta branch December 1, 2023 17:54
Copy link

github-actions bot commented Dec 1, 2023

🎉 This PR is included in version 1.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

1 participant