Skip to content
/ mocki Public

🚧 VERY WIP - Autogenerate your mocks 🚧

License

Notifications You must be signed in to change notification settings

x0s3/mocki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mocki.js

WIP

Spoiler 👀

import { mocki } from 'mocki';

interface Foo {
  bar: string;
}

test('Autogenerate mocks for my interface', () => {
  // `mocki` will transform it to an object with the interface properties filled in
  const mockFooProps = mocki<Foo>();

  expect(mockFooProps).toHaveProperty('bar');
});

About

🚧 VERY WIP - Autogenerate your mocks 🚧

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published