Skip to content

A basic node cli tool to convert faker usage to static mocked data

Notifications You must be signed in to change notification settings

WillPoulson/faker-staticify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Faker Staticify

A basic nodejs cli utility to remove the usage of faker within spec files and replace with static mocks within a directory.

Installation

npm install faker-staticify -g

Usage

Simply run

faker-staticify

Within the project root directory, it will search out all *.spec.ts files and staticify your faker.

Please note: This package will not remove the left over imports, I recommend using something like eslint to remove the unused imports after this runs.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

A basic node cli tool to convert faker usage to static mocked data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published