balena-io-modules / scrutinizer

Extract a git repository's metadata relying on open source conventions
Apache License 2.0
8 stars 0 forks source link

test: Use Jest as the testing suite #40

Closed dimitrisnl closed 5 years ago

dimitrisnl commented 5 years ago

We check everything using deepEqual. This poses a problem when features like releases, contributors, and more get updated. We can't be reactive to them every single time. Even if we have a dedicated test-repo, testing for a specific structure (a schema) seems like a more logical approach.

AVA's assertations are not enough. We could use Chai, but having a single library sounds better.

dimitrisnl commented 5 years ago

Now here there are some initial changes, that should take shape the more plugins we add.

dimitrisnl commented 5 years ago

We can also include the strict equality checks, but checking properties like 'contributors', 'open issue titles' loosely seems better.

dimitrisnl commented 5 years ago

@resin-ci retest

dimitrisnl commented 5 years ago

On hold. Will try out JSON Schema instead.