Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Carbon Shared Tests are re-usable UI unit tests aligned to the Carbon Design System

License

Notifications You must be signed in to change notification settings

carbon-design-system/carbon-shared-tests

Repository files navigation

Project Overview

A test suite of re-usable UI unit tests aligned to the Carbon Design System. Tests focus on user interactions to verify consistent behavior across implementations. The suite is UI and testing framework agnostic using the Exported Tests architecture. This project is a collaboration between teams creating and using Carbon components.

Getting started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

(recommended) Use NVM for managing versions of Node when working on multiple projects.

Installing

We develop using a forking workflow for all users looking to do any work on Carbon Shared Tests.

Now that you you have Carbon Shared Tests set up locally, navigate to the project using the cd command in the terminal and install dependencies using this command:

yarn

Deployment

We distribute Carbon Shared Tests in multiple formats for increased support of various testing frameworks. Import the desired format from the following locations:

  • ES 2015 (ES6) Modules- dist/es/index.js
  • Common JS (ES5) - dist/cjs/index.js
  • Browser compatible (UMD) - dist/umd/index.js

To run the transpiler and generate the previous files use this command:

yarn build

Contribution Guide

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

About

Carbon Shared Tests are re-usable UI unit tests aligned to the Carbon Design System

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •