Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@flarum/jest-config

Package Overview
Dependencies
Maintainers
4
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flarum/jest-config

Jest config for Flarum.

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
4
Weekly downloads
 
Created
Source

Jest config for Flarum

This package provides a Jest config object to run unit & integration tests on Flarum extensions.

Usage

  • Install the package: yarn add --dev @flarum/jest-config
  • Add "type": "module" to your package.json
  • Add "test": "yarn node --experimental-vm-modules $(yarn bin jest)" to your package.json scripts
  • Rename webpack.config.js to webpack.config.cjs
  • Create a jest.config.cjs file with the following content:
module.exports = require('@flarum/jest-config')();
  • If you are using TypeScript, create tsconfig.test.json with the following content:
{
  "extends": "./tsconfig.json",
  "include": ["tests/**/*"],
  "files": ["../../../node_modules/@flarum/jest-config/shims.d.ts"]
}

FAQs

Package last updated on 09 Mar 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc