Skip to content

Document mock options as an optional parameter#350

Merged
3cp merged 1 commit intotschaub:mainfrom
aaclayton:main
Feb 21, 2022
Merged

Document mock options as an optional parameter#350
3cp merged 1 commit intotschaub:mainfrom
aaclayton:main

Conversation

@aaclayton
Copy link
Copy Markdown

@aaclayton aaclayton commented Feb 20, 2022

The mock method currently documents its options parameter as being required. This causes annoying code inspection errors in the IDE when passing only a single object as folows:

mock({
  "some-directory": {
    "some-file.txt": "file content"
  }
});

image

This change makes the parameter optional as intended.

@3cp 3cp merged commit f696b2c into tschaub:main Feb 21, 2022
@3cp
Copy link
Copy Markdown
Collaborator

3cp commented Feb 21, 2022

Thank you!

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.

2 participants