How to review the SNAP eligibility rules - 18F/snap-js-api-prototype GitHub Wiki

Reviewing the tests

To review the SNAP eligibility rules expressed here, start with these files:

These tests are written in a programming language called Gherkin, which is meant to be readable by non-programmers and programmers alike.

The files contain scenarios. For each scenario, you can check that the results (marked with "Then...") are what you expect given the household information (marked with "Given...").

Questions, suggestions, or proposed changes

If you have questions or comments about one of the rules defined in these tests, but don't have the technical background to interact directly with the code, feel free to reach out over email.

If you would like to add a test, or propose a change to an existing test, feel free to open a pull request.

Reading the logic

Even if you don't consider yourself a programmer or know how to code, you may be interested in looking at the logic behind the SNAP eligibility rules. The three SNAP eligibility tests (gross income test, net income test, and asset test) would be a good place to start. You can find those files here:

You might also be interested in how we calculate net and gross income: