Skip to content

Commit 62b7c5e

Browse files
committed
Add the mock feature to the README.md.
1 parent be81fae commit 62b7c5e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ Skippy is designed to be an easy to use, robust, and well tested dependencies co
1010
- Instantiate service as described in the dependencies configuration.
1111
- Configure what should be used as service constructor parameters: you can pass another services as reference, parameters, or any values you have configured.
1212
- Manage singleton instance of service (not defined by design pattern, but by configuration).
13-
- Check the dependencies graph to avoid cyclic dependencies (only on development environement: `process.env.NODE_ENV === 'development'`).
13+
- Check the dependencies graph to avoid cyclic dependencies (only on development environment: `NODE_ENV="development"`).
14+
- Allowing injection of service mock (only in test environment: `NODE_ENV="test"`).
1415

1516
#### What Skippy don't do (and never will)
1617
- Introspect JSDoc or parameters name to determine witch service should be inject in a constructor function. You have to define service dependencies in a configuration file.

0 commit comments

Comments
 (0)