Overview
The @archibald/testing package offers functionality for writing tests in Archibald based projects. It uses Testing Library behind the scenes and reexports all functionality it offers.
Installation
Run following to install @archibald/testing package:
npm install @archibald/testing
Usage
With the following command you can run tests. The p|platform option defines which platform to run the test for.
Either you define in the archibald.json under cli.native.expo.platforms the platforms which are handled as react-native platforms or you provide the n|native flag to the test command.
npm run archibald test -p app|shop