Socket
Socket
Sign inDemoInstall

@vitest/ui

Package Overview
Dependencies
Maintainers
3
Versions
257
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vitest/ui - npm Package Compare versions

Comparing version 1.0.0-beta.2 to 1.0.0-beta.3

dist/client/assets/index-58267aa9.js

7

./dist/index.js

@@ -1,2 +0,2 @@

import { fileURLToPath } from 'url';
import { fileURLToPath } from 'node:url';
import { resolve, basename } from 'pathe';

@@ -33,5 +33,4 @@ import sirv from 'sirv';

function resolveCoverageFolder(ctx) {
var _a, _b, _c;
const options = ctx.config;
const htmlReporter = ((_a = options.api) == null ? void 0 : _a.port) && ((_b = options.coverage) == null ? void 0 : _b.enabled) ? options.coverage.reporter.find((reporter) => {
const htmlReporter = options.api?.port && options.coverage?.enabled ? options.coverage.reporter.find((reporter) => {
if (typeof reporter === "string")

@@ -44,3 +43,3 @@ return reporter === "html";

const root = resolve(
((_c = ctx.config) == null ? void 0 : _c.root) || options.root || process.cwd(),
ctx.config?.root || options.root || process.cwd(),
options.coverage.reportsDirectory || coverageConfigDefaults.reportsDirectory

@@ -47,0 +46,0 @@ );

@@ -1,2 +0,2 @@

import { fileURLToPath } from 'url';
import { fileURLToPath } from 'node:url';
import { resolve, basename } from 'pathe';

@@ -33,5 +33,4 @@ import sirv from 'sirv';

function resolveCoverageFolder(ctx) {
var _a, _b, _c;
const options = ctx.config;
const htmlReporter = ((_a = options.api) == null ? void 0 : _a.port) && ((_b = options.coverage) == null ? void 0 : _b.enabled) ? options.coverage.reporter.find((reporter) => {
const htmlReporter = options.api?.port && options.coverage?.enabled ? options.coverage.reporter.find((reporter) => {
if (typeof reporter === "string")

@@ -44,3 +43,3 @@ return reporter === "html";

const root = resolve(
((_c = ctx.config) == null ? void 0 : _c.root) || options.root || process.cwd(),
ctx.config?.root || options.root || process.cwd(),
options.coverage.reportsDirectory || coverageConfigDefaults.reportsDirectory

@@ -47,0 +46,0 @@ );

@@ -1,5 +0,5 @@

import { promises } from 'fs';
import { fileURLToPath } from 'url';
import { promisify } from 'util';
import { gzip, constants } from 'zlib';
import { promises } from 'node:fs';
import { fileURLToPath } from 'node:url';
import { promisify } from 'node:util';
import { gzip, constants } from 'node:zlib';
import { resolve, basename, dirname, relative } from 'pathe';

@@ -15,3 +15,3 @@ import c from 'picocolors';

function clearId(id2) {
return (id2 == null ? void 0 : id2.replace(/\?v=\w+$/, "")) || "";
return id2?.replace(/\?v=\w+$/, "") || "";
}

@@ -45,10 +45,9 @@ async function get(mod, seen = /* @__PURE__ */ new Map()) {

function getOutputFile(config, reporter) {
if (!(config == null ? void 0 : config.outputFile))
function getOutputFile(config) {
if (!config?.outputFile)
return;
if (typeof config.outputFile === "string")
return config.outputFile;
return config.outputFile[reporter];
return config.outputFile.html;
}
const distDir = resolve(fileURLToPath(import.meta.url), "../../dist");

@@ -78,3 +77,3 @@ class HTMLReporter {

async writeReport(report) {
const htmlFile = getOutputFile(this.ctx.config, "html") || "html/index.html";
const htmlFile = getOutputFile(this.ctx.config) || "html/index.html";
const htmlFileName = basename(htmlFile);

@@ -81,0 +80,0 @@ const htmlDir = resolve(this.ctx.config.root, dirname(htmlFile));

{
"name": "@vitest/ui",
"type": "module",
"version": "1.0.0-beta.2",
"version": "1.0.0-beta.3",
"description": "UI for Vitest",

@@ -24,3 +24,3 @@ "license": "MIT",

"./reporter": {
"types": "./dist/reporter.d.ts",
"types": "./reporter.d.ts",
"import": "./dist/reporter.js"

@@ -37,3 +37,3 @@ },

"peerDependencies": {
"vitest": ">=0.30.1 <1"
"vitest": "^1.0.0-0"
},

@@ -47,6 +47,7 @@ "dependencies": {

"sirv": "^2.0.3",
"@vitest/utils": "1.0.0-beta.2"
"@vitest/utils": "1.0.0-beta.3"
},
"devDependencies": {
"@faker-js/faker": "^8.0.2",
"@iconify-json/logos": "^1.1.37",
"@testing-library/cypress": "^9.0.0",

@@ -72,8 +73,8 @@ "@types/codemirror": "^5.60.8",

"unplugin-vue-components": "^0.25.1",
"vite": "^4.0.0",
"vite": "^4.5.0",
"vite-plugin-pages": "^0.31.0",
"vue": "^3.3.4",
"vue-router": "^4.2.2",
"@vitest/ws-client": "1.0.0-beta.2",
"@vitest/runner": "1.0.0-beta.2"
"@vitest/runner": "1.0.0-beta.3",
"@vitest/ws-client": "1.0.0-beta.3"
},

@@ -84,2 +85,3 @@ "scripts": {

"build:node": "rollup -c",
"typecheck": "tsc --noEmit",
"dev:client": "vite",

@@ -86,0 +88,0 @@ "dev": "rollup -c --watch --watch.include=node",

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