Skip to content

Create jest-preset-graylog package to centralize and share basic jest configuration#9548

Merged
dennisoelkers merged 5 commits intomasterfrom
graylog-jest-preset
Nov 20, 2020
Merged

Create jest-preset-graylog package to centralize and share basic jest configuration#9548
dennisoelkers merged 5 commits intomasterfrom
graylog-jest-preset

Conversation

@linuspahl
Copy link
Copy Markdown
Contributor

@linuspahl linuspahl commented Nov 19, 2020

Please merge this PR together with the related enterprise PR

Description

This PR creates a package which contains the basic jest configuration and all dependencies which are required to setup the test environment in the core repo and plugins.

The package is a dependency of the graylog-web-plugin and can be used as a preset:

"jest": {
   "preset": "jest-preset-graylog",
},

Jest config options can be added in each project, if necessary.
Please note, there are currently still some parts like moduleNameMapper which need to be configured inside each plugin.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would cause existing functionality to change)

/jenkins-pr-deps Graylog2/graylog-plugin-enterprise#1935

@linuspahl linuspahl requested a review from a team November 19, 2020 08:39
… configuration

This package contains the basic jest configuration and all dependencies which are required to setup the test environment in the core repo and plugins.
Please note, there are currently still some parts like moduleNameMapper which need to be configured inside each plugin.
This will may change in the future.
@linuspahl linuspahl changed the title Create graylog-jest-preset package to centralize and share basic jest configuration Create jest-preset-graylog package to centralize and share basic jest configuration Nov 19, 2020
@dennisoelkers dennisoelkers merged commit a8ce245 into master Nov 20, 2020
@dennisoelkers dennisoelkers deleted the graylog-jest-preset branch November 20, 2020 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants