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

jest-github-actions

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-github-actions - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

12

index.js
#!/usr/bin/env node
const {issueCommand} = require("@actions/core/lib/command");
import { issueCommand } from "@actions/core/lib/command.js";
const cwd = new RegExp(process.cwd() + "/", "g");
const regex = /^ at .*?\(?([^\s:]+):(\d+):(\d+)\)?$/;
class GitHubActionsReporter {
onTestResult(_test, {testResults}) {
for (const {failureMessages, fullName, status} of testResults) {
export default class GitHubActionsReporter {
onTestResult(_test, { testResults }) {
for (const { failureMessages, fullName, status } of testResults) {
if (status !== "failed") continue;

@@ -20,3 +20,3 @@ for (const message of failureMessages) {

const [, file, line, col] = match;
issueCommand("error", {file, line, col}, `${fullName}\n\n${local}`);
issueCommand("error", { file, line, col }, `${fullName}\n\n${local}`);
}

@@ -26,3 +26,1 @@ }

}
module.exports = GitHubActionsReporter;
{
"name": "jest-github-actions",
"version": "0.3.0",
"version": "0.4.0",
"description": "Jest reporter for GitHub Actions annotations",
"type": "module",
"main": "index.js",

@@ -6,0 +7,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

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