Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

fix(plugin-runner-jest): Prepare plugin to deal with projects that has more than one projects #94

Merged
merged 1 commit into from
Sep 20, 2022

Conversation

jonatasemidio
Copy link
Contributor

Description

When we start using garment for running our playwright integration test, we found that the logic behind the config object was not ready to deal with jestConfig with more than one projects. The main reason is when we have more then one projects the configuration object is built without rootDir, forcing the runner consider only the rootDir form the root and not from the project path.

Fixes # (issue)

It was added a verification for the described scenario and an update of each object with the rootDir from the path.

How Has This Been Tested?

It was added two scenarios on the getConfig.test.ts to cover this situation.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have added tests to cover my changes
  • I have made corresponding changes to the documentation

Disclaimer

By sending us your contributions, you are agreeing that your contribution is made subject to the terms of our Contributor Ownership Statement

@luisvieiragmr luisvieiragmr merged commit c94f1ae into Farfetch:master Sep 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants