You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exports[`base functionality - array-plugin=true:auto-freeze=true:shallow-copy=false:use-listener=false > throws when Object.defineProperty() is used on drafts 1`] =`[Error: [Immer] minified error nr: 11. Full error at: https://bit.ly/3cXEKWf]`;
14
+
15
+
exports[`base functionality - array-plugin=true:auto-freeze=true:shallow-copy=false:use-listener=false > throws when Object.setPrototypeOf() is used on a draft 1`] =`[Error: [Immer] minified error nr: 12. Full error at: https://bit.ly/3cXEKWf]`;
16
+
17
+
exports[`base functionality - array-plugin=true:auto-freeze=true:shallow-copy=false:use-listener=false > throws when the draft is modified and another object is returned 1`] =`[Error: [Immer] minified error nr: 4. Full error at: https://bit.ly/3cXEKWf]`;
exports[`base functionality - array-plugin=true:auto-freeze=true:shallow-copy=false:use-listener=false > array drafts > throws when a non-numeric property is added 1`] =`[Error: [Immer] Immer only supports setting array indices and the 'length' property]`;
4
+
5
+
exports[`base functionality - array-plugin=true:auto-freeze=true:shallow-copy=false:use-listener=false > array drafts > throws when a non-numeric property is deleted 1`] =`[Error: [Immer] Immer only supports deleting array indices]`;
6
+
7
+
exports[`base functionality - array-plugin=true:auto-freeze=true:shallow-copy=false:use-listener=false > map drafts > revokes map proxies 1`] =`[Error: [Immer] Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? {}]`;
8
+
9
+
exports[`base functionality - array-plugin=true:auto-freeze=true:shallow-copy=false:use-listener=false > map drafts > revokes map proxies 2`] =`[Error: [Immer] Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? {}]`;
10
+
11
+
exports[`base functionality - array-plugin=true:auto-freeze=true:shallow-copy=false:use-listener=false > recipe functions > cannot return a modified child draft 1`] =`[Error: [Immer] An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.]`;
12
+
13
+
exports[`base functionality - array-plugin=true:auto-freeze=true:shallow-copy=false:use-listener=false > revokes the draft once produce returns 1`] =`[TypeError: Cannot perform 'get' on a proxy that has been revoked]`;
14
+
15
+
exports[`base functionality - array-plugin=true:auto-freeze=true:shallow-copy=false:use-listener=false > revokes the draft once produce returns 2`] =`[TypeError: Cannot perform 'set' on a proxy that has been revoked]`;
16
+
17
+
exports[`base functionality - array-plugin=true:auto-freeze=true:shallow-copy=false:use-listener=false > revokes the draft once produce returns 3`] =`[TypeError: Cannot perform 'get' on a proxy that has been revoked]`;
18
+
19
+
exports[`base functionality - array-plugin=true:auto-freeze=true:shallow-copy=false:use-listener=false > revokes the draft once produce returns 4`] =`[TypeError: Cannot perform 'set' on a proxy that has been revoked]`;
20
+
21
+
exports[`base functionality - array-plugin=true:auto-freeze=true:shallow-copy=false:use-listener=false > revokes the draft once produce returns 5`] =`[TypeError: Cannot perform 'get' on a proxy that has been revoked]`;
22
+
23
+
exports[`base functionality - array-plugin=true:auto-freeze=true:shallow-copy=false:use-listener=false > revokes the draft once produce returns 6`] =`[TypeError: Cannot perform 'set' on a proxy that has been revoked]`;
24
+
25
+
exports[`base functionality - array-plugin=true:auto-freeze=true:shallow-copy=false:use-listener=false > revokes the draft once produce returns 7`] =`[TypeError: Cannot perform 'get' on a proxy that has been revoked]`;
26
+
27
+
exports[`base functionality - array-plugin=true:auto-freeze=true:shallow-copy=false:use-listener=false > revokes the draft once produce returns 8`] =`[TypeError: Cannot perform 'set' on a proxy that has been revoked]`;
28
+
29
+
exports[`base functionality - array-plugin=true:auto-freeze=true:shallow-copy=false:use-listener=false > set drafts > revokes sets 1`] =`[Error: [Immer] Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? {}]`;
30
+
31
+
exports[`base functionality - array-plugin=true:auto-freeze=true:shallow-copy=false:use-listener=false > set drafts > revokes sets 2`] =`[Error: [Immer] Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? {}]`;
32
+
33
+
exports[`base functionality - array-plugin=true:auto-freeze=true:shallow-copy=false:use-listener=false > throws when Object.defineProperty() is used on drafts 1`] =`[Error: [Immer] Object.defineProperty() cannot be used on an Immer draft]`;
34
+
35
+
exports[`base functionality - array-plugin=true:auto-freeze=true:shallow-copy=false:use-listener=false > throws when Object.setPrototypeOf() is used on a draft 1`] =`[Error: [Immer] Object.setPrototypeOf() cannot be used on an Immer draft]`;
36
+
37
+
exports[`base functionality - array-plugin=true:auto-freeze=true:shallow-copy=false:use-listener=false > throws when the draft is modified and another object is returned 1`] =`[Error: [Immer] An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.]`;
38
+
3
39
exports[`base functionality - auto-freeze=false:shallow-copy=false:use-listener=false > array drafts > throws when a non-numeric property is added 1`] =`[Error: [Immer] Immer only supports setting array indices and the 'length' property]`;
4
40
5
41
exports[`base functionality - auto-freeze=false:shallow-copy=false:use-listener=false > array drafts > throws when a non-numeric property is deleted 1`] =`[Error: [Immer] Immer only supports deleting array indices]`;
@@ -663,3 +699,50 @@ exports[`complex nesting map / set / object > modify deep object 16`] = `
663
699
},
664
700
]
665
701
`;
702
+
703
+
exports[`complex nesting map / set / object > modify deep object 17`] =`
704
+
{
705
+
"map": Map {
706
+
"set1" => Set {
707
+
{
708
+
"a": 2,
709
+
},
710
+
{
711
+
"b": 2,
712
+
},
713
+
},
714
+
"set2" => Set {
715
+
{
716
+
"c": 3,
717
+
},
718
+
},
719
+
},
720
+
}
721
+
`;
722
+
723
+
exports[`complex nesting map / set / object > modify deep object 18`] =`
0 commit comments