File: 0006-Fix-jest-run.patch

package info (click to toggle)
node-envinfo 7.11.0%2B~cs14.3.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,304 kB
  • sloc: javascript: 2,756; makefile: 8
file content (44 lines) | stat: -rw-r--r-- 1,069 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
From: =?utf-8?q?Bastien_Roucari=C3=A8s?= <rouca@debian.org>
Date: Wed, 8 Nov 2023 12:33:02 +0000
Subject: Fix jest run

* Build to commonjs
* ignore packaged dir and patch dir

Forwarded: not-needed
---
 babel.config.js | 5 ++---
 package.json    | 3 ++-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/babel.config.js b/babel.config.js
index d1ff34c..bc93fa6 100644
--- a/babel.config.js
+++ b/babel.config.js
@@ -6,10 +6,9 @@ module.exports = {
       '@babel/preset-env',
       {
         modules: 'commonjs',
-        targets: {
-          node: '4.9.1',
-        },
+        targets: "defaults",
         useBuiltIns: 'usage',
+        corejs: 3,
       },
     ],
   ],
diff --git a/package.json b/package.json
index 57b0879..291636f 100644
--- a/package.json
+++ b/package.json
@@ -55,7 +55,8 @@
     ]
   },
   "jest": {
-    "testEnvironment": "node"
+    "testEnvironment": "node",
+    "modulePathIgnorePatterns": [".pc" , "yamlify-object", "macos-release", "windows-release", "os-name"]
   },
   "dependencies": {},
   "devDependencies": {