File: fix-for-jest-29.patch

package info (click to toggle)
node-js-tokens 8.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 22,300 kB
  • sloc: javascript: 12,420; makefile: 4
file content (18 lines) | stat: -rw-r--r-- 360 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: fix snapshots for jest >= 29
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2022-10-23

--- a/jest.config.js
+++ b/jest.config.js
@@ -1,6 +1,10 @@
 "use strict";
 
 module.exports = {
+  snapshotFormat: {
+    escapeString: true,
+    printBasicPrototype: true
+  },
   coverageThreshold: {
     global: {
       branches: 100,