Socket
Socket
Sign inDemoInstall

@vitest/snapshot

Package Overview
Dependencies
Maintainers
3
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vitest/snapshot - npm Package Compare versions

Comparing version 1.0.0-beta.6 to 1.0.0

dist/environment-1emuyggI.d.ts

4

dist/environment.d.ts

@@ -1,4 +0,6 @@

import { S as SnapshotEnvironment } from './environment-AwZ-cC__.js';
import { S as SnapshotEnvironment, a as SnapshotEnvironmentOptions } from './environment-1emuyggI.js';
declare class NodeSnapshotEnvironment implements SnapshotEnvironment {
private options;
constructor(options?: SnapshotEnvironmentOptions);
getVersion(): string;

@@ -5,0 +7,0 @@ getHeader(): string;

@@ -5,2 +5,5 @@ import { promises, existsSync } from 'node:fs';

class NodeSnapshotEnvironment {
constructor(options = {}) {
this.options = options;
}
getVersion() {

@@ -19,3 +22,3 @@ return "1";

dirname(filepath),
"__snapshots__"
this.options.snapshotsDirName ?? "__snapshots__"
),

@@ -22,0 +25,0 @@ `${basename(filepath)}.snap`

@@ -1,4 +0,4 @@

import { S as SnapshotStateOptions, a as SnapshotMatchOptions, b as SnapshotResult, R as RawSnapshotInfo } from './index-lPCXZXKD.js';
export { c as SnapshotData, e as SnapshotSummary, d as SnapshotUpdateState, U as UncheckedSnapshot } from './index-lPCXZXKD.js';
import { S as SnapshotEnvironment } from './environment-AwZ-cC__.js';
import { S as SnapshotStateOptions, a as SnapshotMatchOptions, b as SnapshotResult, R as RawSnapshotInfo } from './index-K5cwkiJB.js';
export { c as SnapshotData, e as SnapshotSummary, d as SnapshotUpdateState, U as UncheckedSnapshot } from './index-K5cwkiJB.js';
import { S as SnapshotEnvironment } from './environment-1emuyggI.js';
import { Plugin, Plugins } from 'pretty-format';

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

@@ -1,4 +0,4 @@

import { S as SnapshotStateOptions, e as SnapshotSummary, b as SnapshotResult } from './index-lPCXZXKD.js';
import { S as SnapshotStateOptions, e as SnapshotSummary, b as SnapshotResult } from './index-K5cwkiJB.js';
import 'pretty-format';
import './environment-AwZ-cC__.js';
import './environment-1emuyggI.js';

@@ -5,0 +5,0 @@ declare class SnapshotManager {

{
"name": "@vitest/snapshot",
"type": "module",
"version": "1.0.0-beta.6",
"version": "1.0.0",
"description": "Vitest snapshot manager",

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

"natural-compare": "^1.4.0",
"@vitest/utils": "1.0.0-beta.6"
"@vitest/utils": "1.0.0"
},

@@ -51,0 +51,0 @@ "scripts": {

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