Picture of the author

Contribution and Development


Running Tests

This package contains several tests for the different endpoints. We are currently making the switch to using the PEST framework for all tests. Tests are another great resource for usage examples.

You can execute the tests inside the laravel-notion-api directory root like this:

./vendor/bin/pest tests

Testing with Snapshots

Initially we created handcrafted snapshots of API responses for testing. However, to improve maintainability we are now creating snapshots automatically for all endpoints (and is still a work in progress). Due to technical limitations, only the maintainers can create and update snapshots. Running the tests is still possible for everyone.

If you contribute a feature and write tests, please use the existing snapshots or send us your Notion template, if the exising snapshots are not sufficient.