🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@rocketseat/rocket-scripts

Package Overview
Dependencies
Maintainers
7
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rocketseat/rocket-scripts

Configuration and scripts to power Rocketseat's react apps

latest
Source
npmnpm
Version
0.0.24
Version published
Maintainers
7
Created
Source

rocket-scripts

This package includes scripts and configurations used to power all Rocketseat's react apps.

Tests

As rocket-scripts can be used with both javascript and typescript files, it is necessary to configure based on what you're using.

To use the tests with rocket-scripts it is necessary to configure the enzyme with the following packages:

Javascript

yarn add enzyme enzyme-adapter-react-16 -D

Typescript:

yarn add enzyme enzyme-adapter-react-16 @types/enzyme @types/enzyme-adapter-react-16 -D

And add the file src/setupTests.ts with the basic settings below:

import Enzyme from "enzyme";
import Adapter from "enzyme-adapter-react-16";

Enzyme.configure({ adapter: new Adapter() });

Merging configurations

You can merge the default settings with your own.

Jest

Create a file named jest.config.js and export an object with the settings you want to change.

License

MIT Š Rocketseat

Made with ♥️

FAQs

Package last updated on 14 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts