Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

✨ An opinionated Jest preset for React modules

License

NotificationsYou must be signed in to change notification settings

americanexpress/amex-jest-preset-react

Repository files navigation

amex-jest-preset-react - One Amex

An opinionatedJest preset for React modules. For non-React projects useamex-jest-preset

👩‍💻 Hiring 👨‍💻

Want to get paid for your contributions toamex-jest-preset-react?Send your resume tooneamex.careers@aexp.com

📖 Table of Contents

✨ Features

  • Base for Jest's configuration for React modules

🤹‍ Usage

  1. Install:

    npm install --save-dev amex-jest-preset-react
  2. And in yourJest configuration:

    {"preset":"amex-jest-preset-react"}

And... that's it! You now have all the boilerplate Jest configurations set up for you! Runningjest from yournpm test script will use all these configurations!

🎛️ API

Extending the preset provided configuration

You can add on and/or override any values provided in this preset as you wish in yourJest configuration.

It should be noted that if overriding thesetupFilesAfterEnv option you may want to extend off of thesetup file provided by amex-jest-preset-react in order to preserve that files' content. Otherwise you will lose anything we provide for you inthere. Do so as follows:

// in custom-jest-setup.jsrequire('amex-jest-preset-react/jest-setup');// your own custom setup

Configurations

Extendsamex-jest-preset and adds the following configurations that are specific to testing React modules:

Compatibility

This package is compatible only with React 17+.

🗝️ License

Any contributions made under this project will be governed by theApache License2.0.

🗣️ Code of Conduct

This project adheres to theAmerican Express Community Guidelines.By participating, you are expected to honor these guidelines.

🏆 Contributing

We welcome Your interest in the American Express Open Source Community on Github.Any Contributor to any Open Source Project managed by the American Express OpenSource Community must accept and sign an Agreement indicating agreement to theterms below. Except for the rights granted in this Agreement to American Expressand to recipients of software distributed by American Express, You reserve allright, title, and interest, if any, in and to Your Contributions. Pleasefillout the Agreement.

Please feel free to open pull requests and seeCONTRIBUTING.md to learn how to get started contributing.

About

✨ An opinionated Jest preset for React modules

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors17


[8]ページ先頭

©2009-2025 Movatter.jp