@vitest/snapshot 2.1.2 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1546 -1546
- package/dist/manager.d.ts +1 -1
- package/dist/{index-Y6kQUiCB.d.ts → rawSnapshot-CPNkto81.d.ts} +7 -7
- package/package.json +4 -4
package/dist/manager.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { S as SnapshotStateOptions,
|
1
|
+
import { S as SnapshotStateOptions, e as SnapshotSummary, b as SnapshotResult } from './rawSnapshot-CPNkto81.js';
|
2
2
|
import '@vitest/pretty-format';
|
3
3
|
import './environment-Ddx0EDtY.js';
|
4
4
|
|
@@ -1,12 +1,6 @@
|
|
1
1
|
import { Plugin, OptionsReceived } from '@vitest/pretty-format';
|
2
2
|
import { S as SnapshotEnvironment } from './environment-Ddx0EDtY.js';
|
3
3
|
|
4
|
-
interface RawSnapshotInfo {
|
5
|
-
file: string;
|
6
|
-
readonly?: boolean;
|
7
|
-
content?: string;
|
8
|
-
}
|
9
|
-
|
10
4
|
type SnapshotData = Record<string, string>;
|
11
5
|
type SnapshotUpdateState = 'all' | 'new' | 'none';
|
12
6
|
type SnapshotSerializer = Plugin;
|
@@ -57,4 +51,10 @@ interface SnapshotSummary {
|
|
57
51
|
updated: number;
|
58
52
|
}
|
59
53
|
|
60
|
-
|
54
|
+
interface RawSnapshotInfo {
|
55
|
+
file: string;
|
56
|
+
readonly?: boolean;
|
57
|
+
content?: string;
|
58
|
+
}
|
59
|
+
|
60
|
+
export type { RawSnapshotInfo as R, SnapshotStateOptions as S, UncheckedSnapshot as U, SnapshotMatchOptions as a, SnapshotResult as b, SnapshotData as c, SnapshotSerializer as d, SnapshotSummary as e, SnapshotUpdateState as f };
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vitest/snapshot",
|
3
3
|
"type": "module",
|
4
|
-
"version": "2.1.
|
4
|
+
"version": "2.1.4",
|
5
5
|
"description": "Vitest snapshot manager",
|
6
6
|
"license": "MIT",
|
7
7
|
"funding": "https://opencollective.com/vitest",
|
@@ -38,14 +38,14 @@
|
|
38
38
|
"dist"
|
39
39
|
],
|
40
40
|
"dependencies": {
|
41
|
-
"magic-string": "^0.30.
|
41
|
+
"magic-string": "^0.30.12",
|
42
42
|
"pathe": "^1.1.2",
|
43
|
-
"@vitest/pretty-format": "2.1.
|
43
|
+
"@vitest/pretty-format": "2.1.4"
|
44
44
|
},
|
45
45
|
"devDependencies": {
|
46
46
|
"@types/natural-compare": "^1.4.3",
|
47
47
|
"natural-compare": "^1.4.0",
|
48
|
-
"@vitest/utils": "2.1.
|
48
|
+
"@vitest/utils": "2.1.4"
|
49
49
|
},
|
50
50
|
"scripts": {
|
51
51
|
"build": "rimraf dist && rollup -c",
|