Jest tests for demo website, 100% coverage for both components.
Multi-project Jest setup. This allows Jest to be run the respective configs for different projects, namely:
jsdom for demo website
node for memory models scripts
any other env as needed.
Prop types.
Miscellaneous
displayName Jest config helps identify the context of the tests when run:
Jest currently outputs the following warnings to stdout:
this is (likely a false positive) due to https://togithub.com/jestjs/jest/issues/13576. The option is recognized regardless in test runs (npm run test does not output the coverage table). The warnings should disappear once that issue is fixed.
Overall
jsdom
for demo websitenode
for memory models scriptsMiscellaneous
displayName
Jest config helps identify the context of the tests when run:Jest currently outputs the following warnings to stdout: this is (likely a false positive) due to https://togithub.com/jestjs/jest/issues/13576. The option is recognized regardless in test runs (
npm run test
does not output the coverage table). The warnings should disappear once that issue is fixed.