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": {
