Running your tests

Jest
Jest-logo

Ponicode creates test files using Jest syntax. In order to run the generated tests you should follow these guidelines:

Start by installing jest:

npm install --save-dev jest

or

yarn add --dev jest

Add the following to your package.json:

yarn add --dev jest

You can now easily run all your project's test suite by using the command npm run test or yarn test.

If you want to run your test files individually, you can usejest FILE_NAME.test.js.

You can find more about how to run tests with Jest in the jest documentation.

Ready to write beautiful code?

Smart and simple docstring generation. Now available in your favorite code hosting platform.

Try it now