Gathering detailed insights and metrics for storybook-components
Gathering detailed insights and metrics for storybook-components
Gathering detailed insights and metrics for storybook-components
Gathering detailed insights and metrics for storybook-components
npm install storybook-components
Typescript
Module System
Node Version
NPM Version
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
79
40
Create a .env.development file in the root directory and fill it with data using the .env.example template. Without this, APIs will not go through, neither will pusher notifications.
Don't forget to create a local.properties file inside the "android" directory. The file should contain the following:
sdk.dir = /YOUR/PATH/TO/Android/sdk
Don't forget to create a keystore.properties file inside the "android" directory. The file should contain the following:
/YOUR/PATH/TO/Android/keystore.properties.example
You will also need to have keystore.properties
within /android
. For this you can use the file named keystore.properties.example
no new values are needed:
cp android/keysore.properties.example android/keystore.properties
cd ios && pod install
Make sure you have your android emulator(s) running:
PATH=$PATH:/path/to/Android/sdk/platform-tools && yarn run android:dev && yarn run ios:dev
Testing has multiple parts:
-Building: If you're going to build and test on a Pixel_2_API_26, run the test script below without the --device-name option. Feel free to replace debug with release:
yarn run test-android:build-debug --device-name YOUR_EMULATOR_NAME
How to figure out the names of the emulators you have installed?
~/Library/Android/Sdk/tools/bin/avdmanager list avd
This is on Mac, find the path to the avdmanager and replace accordingly if you're on Windows [I'm judging you].
-Testing:
You need to precede the test script with the path to your sdk as in the script below. If your emulator is a Pixel_2_API_26, run the test script below without the --device-name option. Feel free to replace debug with release:
ANDROID_SDK_ROOT=~/Library/Android/sdk/ yarn run test:android-debug --device-name YOUR_DEVICE_NAME
This is on Mac, find the path to the Android/sdk and replace accordingly if you're on Windows [I'm judging you].
*Refer to building section above to learn how to find emulators' names.
-Building: If your going to build and test on an iPhone 11, run the following without the --device-name option. Feel free to replace debug with release:
yarn run test-ios:build-debug --device-name "SIMULATOR NAME"
How to figure out the names of the simulators you have installed?
instruments -s devices
-Testing:
If your going to build and test on an iPhone 11, run the following without the --device-name option. Replace debug with release if needed:
yarn run test:ios-debug --device-name "SIMULATOR NAME"
*Refer to building section above to learn how to find simulators' names.
General Notes For Both Platforms:
--take-screenshots failing
option to the script. In case the test fails, it
will take a screenshot and store it in a folder called artifacts in the root directory (overridable)
in the test config (in package.json).detox[27017] ERROR: [cli.js] Error: Command failed: node_modules/.bin/jest --config ./e2e/jest.config.js '--testNamePattern=^((?!:ios:).)*$' --maxWorkers 1 "e2e"
This error usually happens on android
The request was denied by service delegate (SBMainWorkspace) for reason: Unspecified
No vulnerabilities found.
No security vulnerabilities found.