Custom matcher for paths on different OS #744
Labels
💡 good first issue
good for newcomers
🆘 help wanted
assistance is required
🔬 testing
writing tests
🤓 UX
UX improvement for CLI users
User story
As a developer I want to have a good signal to noise ration and want to write my tests with as less boilerplate as possible.
Paths are environment specific and cause boilerplate to get properly tested.
Therefor I need a custom matcher for paths.
Existing helper:
os-agnostic-paths
Bad example:
Suggested matcher:
expect(myPath).toContainPath('...')
expect(myPath).toEndWithPath('...')
Good example:
Acceptance criteria
I want to be able to use the custom matcher in the following libs:
Internal logic:
I want to be able to have different matcher present:
toContainPath('...')
toEndWithPath('...')
The text was updated successfully, but these errors were encountered: