jest-badges-readme 1


  npm i @olavoparno/jest-badges-readme --save-dev

Here is what the above code is Doing:
1. It’s importing the `jestBadges` function from the `jest-badges-readme` package.
2. It’s calling the `jestBadges` function, passing in the `__dirname` variable.
3. It’s saving the return value of the `jestBadges` function to a variable called `badges`.
4. It’s writing the `badges` variable to the `` file.

## How to use

1. Install the package:

npm i @olavoparno/jest-badges-readme –save-dev

2. Import the `jestBadges` function from the package:

import jestBadges from ‘@olavoparno/jest-badges-readme’;

3. Call the `jestBadges` function, passing in the `__dirname` variable:

const badges = jestBadges(__dirname);

4. Write the return value of the `jestBadges` function to the `` file:

fs.writeFileSync(path.join(__dirname, ‘’), badges);

## How to run the tests

1. Clone the repository:

git clone

2. Install the dependencies:

npm i

3. Run the tests:

npm test

## How to contribute

1. Fork the repository.
2. Create a branch for your feature.
3. Add your feature.
4. Add tests for your feature.
5. Run the tests, ensuring they all pass.
6. Submit a pull request.

## License


Similar Posts