@vitest/snapshot 4.0.0-beta.1 → 4.0.0-beta.11

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2021-Present Vitest Team
3
+ Copyright (c) 2021-Present VoidZero Inc. and Vitest contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/dist/index.d.ts CHANGED
@@ -20,11 +20,6 @@ declare class DefaultMap<
20
20
  }
21
21
  declare class CounterMap<K> extends DefaultMap<K, number> {
22
22
  constructor();
23
- // compat for jest-image-snapshot https://github.com/vitest-dev/vitest/issues/7322
24
- // `valueOf` and `Snapshot.added` setter allows
25
- // snapshotState.added = snapshotState.added + 1
26
- // to function as
27
- // snapshotState.added.total_ = snapshotState.added.total() + 1
28
23
  _total: number | undefined;
29
24
  valueOf(): number;
30
25
  increment(key: K): void;
@@ -59,20 +54,18 @@ declare class SnapshotState {
59
54
  private _environment;
60
55
  private _fileExists;
61
56
  expand: boolean;
62
- // getter/setter for jest-image-snapshot compat
63
- // https://github.com/vitest-dev/vitest/issues/7322
64
57
  private _added;
65
58
  private _matched;
66
59
  private _unmatched;
67
60
  private _updated;
68
61
  get added(): CounterMap<string>;
69
- set added(value: CounterMap<string>);
62
+ set added(value: number);
70
63
  get matched(): CounterMap<string>;
71
- set matched(value: CounterMap<string>);
64
+ set matched(value: number);
72
65
  get unmatched(): CounterMap<string>;
73
- set unmatched(value: CounterMap<string>);
66
+ set unmatched(value: number);
74
67
  get updated(): CounterMap<string>;
75
- set updated(value: CounterMap<string>);
68
+ set updated(value: number);
76
69
  private constructor();
77
70
  static create(testFilePath: string, options: SnapshotStateOptions): Promise<SnapshotState>;
78
71
  get environment(): SnapshotEnvironment;