Become a Python Testing Powerhouse
$ pip install pytest-jest
We recommend to also use snapshottest:
$ pip install snapshottest
Add a package.json, Jest, and Jest-Pytest:
$ yarn init && yarn add --dev jest jest-pytest
Add this to your package.json configuration:
"jest": {
"moduleFileExtensions": ["py"],
"runner": "jest-pytest",
"testPathIgnorePatterns": [],
"testMatch": ["<rootDir>/tests/test_*.py"]
},
And run:
$ yarn jest --watch
Take a look at some configured examples: Simple, Flask, Requests, and Home Assistant.
Save time. Get In Your Zone.
Use the best of breed test platform - now for Python too. A developer experience you're going to fall in love with.
Effortless Snapshots
Unlock the Jest snapshot experience. Jest-pytest seamlessly integrates with the Pytest snapshots plugin.
Learn about Jest
The Jest core team and contributors regularly speak about Jest and Jest as a Platform, and now you can use it with Python too :).
Who's Behind This?
This project was built by the Jest community