Skip to content
Myr

manual.js.snap

This file

Path

__tests__/__snapshots__/manual.js.snap

53 lines · 1.6 KiB

Last changed by

chore: Migrate test setup to Vitest (#1162)Mark Eriksonbefore adoption4b8bcc5

History of this file

Take it

1// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html23exports[`manual - proxy > cannot finishDraft twice 1`] = `[TypeError: Cannot perform 'get' on a proxy that has been revoked]`;45exports[`manual - proxy > cannot modify after finish 1`] = `[TypeError: Cannot perform 'set' on a proxy that has been revoked]`;67exports[`manual - proxy > should check arguments 1`] = `[Error: [Immer] First argument to \`createDraft\` must be a plain object, an array, or an immerable object]`;89exports[`manual - proxy > should check arguments 2`] = `[Error: [Immer] First argument to \`createDraft\` must be a plain object, an array, or an immerable object]`;1011exports[`manual - proxy > should check arguments 3`] = `[Error: [Immer] First argument to \`finishDraft\` must be a draft returned by \`createDraft\`]`;1213exports[`manual - proxy > should not finish drafts from produce 1`] = `[Error: [Immer] First argument to \`finishDraft\` must be a draft returned by \`createDraft\`]`;1415exports[`manual - proxy > should not finish twice 1`] = `[TypeError: Cannot perform 'get' on a proxy that has been revoked]`;1617exports[`manual - proxy > should support patches drafts 1`] = `18[19  [20    [21      {22        "op": "replace",23        "path": [24          "a",25        ],26        "value": 2,27      },28      {29        "op": "add",30        "path": [31          "b",32        ],33        "value": 3,34      },35    ],36    [37      {38        "op": "replace",39        "path": [40          "a",41        ],42        "value": 1,43      },44      {45        "op": "remove",46        "path": [47          "b",48        ],49      },50    ],51  ],52]53`;