This is Foundation Shared Dependancy Repo
To integrate the NuSkin Shared Dependancy into your NuSkin Pages project, follow these steps:
git clone git@code.tls.nuskin.io:ns-am/content-foundation/foundation-core-app.git
yarn dev
This project relies on the following dependencies:
Emotion UI Libraries
@emotion/react@^11.11.1
@emotion/styled@^11.11.0
Material-UI Libraries
@mui/material@5.14.16
@mui/icons-material@^5.14.16
@mui/utils@^5.14.16
NuSkin Foundation Theme
@nuskin/foundation-theme@1.5.0
We use Jest for testing our project. Below are the available test scripts:
-
Run all tests and generate coverage report:**
yarn test
-
Run tests for a specific pattern (e.g., accordion/*):
yarn run test:pattern
-
Run only failed tests from the last test run:
yarn run test:failed
-
Generate and view code coverage report:
yarn run test:coverage
-
The yarn test script builds the project using Next.js before running Jest tests.
-
Feel free to customize the test patterns or add additional options as needed.
After running tests, open the index.html
file in the coverage
directory to view the coverage report.