Socket
Socket
Sign inDemoInstall

vitest-github-actions-reporter

Package Overview
Dependencies
561
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.6.0 to 0.7.0

18

package.json
{
"name": "vitest-github-actions-reporter",
"version": "0.6.0",
"version": "0.7.0",
"description": "Vitest reporter to create annotations when running tests in GitHub Actions",

@@ -23,2 +23,3 @@ "type": "module",

"lint": "eslint --cache .",
"format": "prettier --write --cache .",
"type-check": "tsc --noEmit"

@@ -44,20 +45,19 @@ },

"peerDependencies": {
"vitest": "^0.14.0"
"vitest": "^0.15.1"
},
"devDependencies": {
"@types/node": "^16.11.32",
"@typescript-eslint/eslint-plugin": "^5.27.1",
"@typescript-eslint/parser": "^5.27.1",
"@typescript-eslint/eslint-plugin": "^5.28.0",
"@typescript-eslint/parser": "^5.28.0",
"eslint": "^8.17.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"execa": "^6.1.0",
"prettier": "^2.6.2",
"tsup": "^6.1.0",
"prettier": "^2.7.0",
"tsup": "^6.1.2",
"typescript": "^4.7.3",
"vitest": "^0.14.0"
"vitest": "^0.15.1"
},
"dependencies": {
"@actions/core": "^1.8.2"
"@actions/core": "^1.9.0"
}
}
# vitest-github-actions-reporter
[![npm version](https://badge.fury.io/js/vitest-github-actions-reporter.svg)](https://badge.fury.io/js/vitest-github-actions-reporter) ![CI](https://github.com/sapphi-red/vitest-github-actions-reporter/workflows/CI/badge.svg) [![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)
[![npm version](https://badge.fury.io/js/vitest-github-actions-reporter.svg)](https://badge.fury.io/js/vitest-github-actions-reporter) ![CI](https://github.com/sapphi-red/vitest-github-actions-reporter/workflows/CI/badge.svg) [![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)

@@ -12,2 +12,3 @@ Vitest reporter to create annotations when running tests in GitHub Actions.

## Install
```shell

@@ -18,3 +19,5 @@ npm i -D vitest-github-actions-reporter # yarn add -D vitest-github-actions-reporter

## Usage
Add this reporter to `vite.config.js` / `vite.config.ts`.
```js

@@ -26,6 +29,9 @@ // vite.config.js / vite.config.ts

test: {
reporters: process.env.GITHUB_ACTIONS ? new GithubActionsReporter() : 'default'
reporters: process.env.GITHUB_ACTIONS
? new GithubActionsReporter()
: 'default'
}
}
```
Then run `vitest` with GitHub Actions.

@@ -35,4 +41,6 @@ That's all. GitHub Actions will do everything other.

## Options
### `trimRepositoryPrefix`
*Default: `true`*
_Default: `true`_
Trims `/home/runner/{repository name}` / `D:\a\{repository name}` in stacktrace.

@@ -43,5 +51,6 @@ The image below is a preview when it is `false`.

### `hideStackTrace`
*Default: `false`*
_Default: `false`_
Hides stacktrace in message.
The image below is a preview when it is `true`.
![image](https://user-images.githubusercontent.com/49056869/156354039-750a6194-eb76-4adb-bbd6-7c2b65ec80a4.png)
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc