[Pkg-javascript-devel] jest 29 update

Yadd yadd at debian.org
Thu Sep 29 21:38:41 BST 2022


Hi all,

the main breaking change in jest 29 is the snapshot format. Hopefully 
it's easy to go back to previous format:

--- a/package.json
+++ b/package.json
@@ -45,5 +45,11 @@
      "jest": "^26.2.2",
      "prettier": "^2.0.5",
      "rollup": "^2.23.1"
    },
+  "jest": {
+     "snapshotFormat": {
+       "escapeString": true,
+       "printBasicPrototype": true
+     }
+  }
  }

See https://jestjs.io/docs/upgrading-to-jest29 for more



More information about the Pkg-javascript-devel mailing list