This adds a test script that will run the tests in every exercise solution folder. This should help us always have working exercise solutions and avoid regressions.
This work is not 100% complete, but I’d like to merge it in as-is because it’s definitely an improvement over what we have.
Here’s what still needs to be done:
Fix all the exercise solutions; right now, they should be correct through exercises/react-native/11-navigation/02-solution.
Replace the generate script run in the CI run with the test script (this can be done after all the tests pass).
Some notes on changes to the exercises:
A package-lock.json was added to the first solution because 1) that reflects the actual solution and 2) that makes it possible to use npm ci for all the solution folders.
I believe the <StateList> should have the <ScrollView> contents when it’s made its own component.
This adds a
test
script that will run the tests in every exercise solution folder. This should help us always have working exercise solutions and avoid regressions.This work is not 100% complete, but I’d like to merge it in as-is because it’s definitely an improvement over what we have.
Here’s what still needs to be done:
exercises/react-native/11-navigation/02-solution
.generate
script run in the CI run with thetest
script (this can be done after all the tests pass).Some notes on changes to the exercises:
package-lock.json
was added to the first solution because 1) that reflects the actual solution and 2) that makes it possible to usenpm ci
for all the solution folders.<StateList>
should have the<ScrollView>
contents when it’s made its own component.identity-obj-proxy
to ignore PNG files in the dependencies.waitFor
calls in the tests were necessary to avoid errors.StateList
to theSettings
.