Generate predefined mocks from fixtures
Add optimist fixture

For isaacs/npm#4368