Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@aaclayton
Copy link

@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
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