skc-rcl
TypeScript icon, indicating that this package has built-in type declarations

1.1.7-2 • Public • Published

skc-rcl

React component library that will be used by SKC sites.

Build & Code Quality

StoryBook

Deploy StoryBook

This repo has a corresponding StoryBook website that users can take advantage of and see all current components supported. If above badge is not green, then recent deployment of StoryBook components has failed.

Testing

Jest is used to run Unit tests. There are many dependencies used in testing and they will be explained below.

Library Function
@testing-library/jest-dom Allows tests to use HTML element matchers. This is imported for all tests using the file setupTests.ts and linked in the package.json file under Jest config named setupFilesAfterEnv
@testing-library/react Helper library for React apps. Allows us to render the DOM of react apps using the Component
jest-environment-jsdom" Since the default test environment is node, we need to install jsdom (this lib) and specify the environment in the package.json file under Jest config named testEnvironment. More info here
jest-transform-css Allows components within tests to import CSS files
ts-jest Allows jest to test TS files

Readme

Keywords

Package Sidebar

Install

npm i skc-rcl

Weekly Downloads

199

Version

1.1.7-2

License

MIT

Unpacked Size

219 kB

Total Files

9

Last publish

Collaborators

  • skc25