@vitest/snapshot
Advanced tools
Comparing version 1.0.0-beta.6 to 1.0.0
@@ -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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
65740
1776
0