@ark/attest 0.18.4 → 0.20.0

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.
@@ -83,11 +83,14 @@ const writeCachedInlineSnapshotUpdates = () => {
83
83
  };
84
84
  const snapshotArgsToQueuedUpdate = ({ position, serializedValue, snapFunctionName = "snap", baselinePath }) => {
85
85
  const snapCall = findCallExpressionAncestor(position, snapFunctionName);
86
- const newArgText = typeof serializedValue === "string" && serializedValue.includes("\n") ?
86
+ let newArgText = typeof serializedValue === "string" && serializedValue.includes("\n") ?
87
87
  "`" +
88
88
  serializedValue.replaceAll("`", "\\`").replaceAll("${", "\\${") +
89
89
  "`"
90
90
  : JSON.stringify(serializedValue);
91
+ newArgText = newArgText
92
+ .replace(/"\$ark.bigint-(-?\d+)"/g, "$1n")
93
+ .replace(/"\$ark.undefined"/g, "undefined");
91
94
  return {
92
95
  position,
93
96
  snapCall,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ark/attest",
3
- "version": "0.18.4",
3
+ "version": "0.20.0",
4
4
  "author": {
5
5
  "name": "David Blass",
6
6
  "email": "david@arktype.io",
@@ -35,9 +35,9 @@
35
35
  "@typescript/analyze-trace": "0.10.1",
36
36
  "prettier": "3.3.3",
37
37
  "@prettier/sync": "0.5.2",
38
- "arktype": "2.0.0-rc.11",
39
- "@ark/util": "0.13.0",
40
- "@ark/fs": "0.13.0"
38
+ "arktype": "2.0.0-rc.13",
39
+ "@ark/util": "0.15.0",
40
+ "@ark/fs": "0.15.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "typescript": "5.6.2"