openfga / language

Grammar for the OpenFGA modeling language
https://openfga.dev
Apache License 2.0
17 stars 7 forks source link

chore(go): filter out validation errors when constructing go testcases #195

Closed ewanharris closed 6 months ago

ewanharris commented 6 months ago

Description

The Go package currently doesn't have validation so we want to ignore those specific errors when running the modular transform tests, we can detect these by if they have metadata.errorType set so we filter them out when constructing out test case.

Also corrects the paths used to include the ** so that changes under tests will trigger the JS and Go tests to run even if the source files aren't touched

References

Review Checklist