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

allure-jasmine

Package Overview
Dependencies
Maintainers
3
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

allure-jasmine

Allure Jasmine integration

  • 2.9.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.6K
decreased by-9.97%
Maintainers
3
Weekly downloads
 
Created
Source

allure-jasmine

Allure integration Jasmine framework

For usage example see test/Setup.ts

Usage with Jest (jest@<27)

Use your favorite node package manager to install required packages:

npm add -D jest-jasmine2 allure-jasmine allure-js-commons @types/jasmine

Create allure-setup.ts file:

import { JasmineAllureReporter } from "allure-jasmine";
import { JasmineAllureInterface } from "allure-jasmine/dist/src/JasmineAllureReporter";

const reporter = new JasmineAllureReporter({ resultsDir: "allure-results" });

jasmine.getEnv().addReporter(reporter);
// @ts-expect-error
global.allure = reporter.getInterface();

declare global {
  const allure: JasmineAllureInterface;
}

Change your jest.config.js file:

module.exports = {
  preset: "ts-jest",
+  testRunner: "jest-jasmine2",
+  setupFilesAfterEnv: ["./allure-setup.ts"],
};

You can find example setup and usage in this repo

FAQs

Package last updated on 03 Oct 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