gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant-backoffice] 02/02: fix jest


From: gnunet
Subject: [taler-merchant-backoffice] 02/02: fix jest
Date: Thu, 27 May 2021 21:31:59 +0200

This is an automated email from the git hooks/post-receive script.

sebasjm pushed a commit to branch master
in repository merchant-backoffice.

commit ee27f2e15213c9cde171d0dbb693ba651e945625
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Thu May 27 16:30:01 2021 -0300

    fix jest
    
    jest needs normal js files and need them to be transformed before running
    
https://jestjs.io/docs/configuration#transform-objectstring-pathtotransformer--pathtotransformer-object
    
https://jestjs.io/docs/tutorial-react-native#transformignorepatterns-customization
    The transformIgnorePatterns option can be used to specify which files shall 
be transformed by Babel. Many react-native npm modules unfortunately don't 
pre-compile their source code before publishing.
    
    By default the jest-react-native preset only processes the project's own 
source files and react-native. If you have npm dependencies that have to be 
transformed you can customize this configuration option by including modules 
other than ...
---
 packages/frontend/package.json | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/packages/frontend/package.json b/packages/frontend/package.json
index 634f622..451b524 100644
--- a/packages/frontend/package.json
+++ b/packages/frontend/package.json
@@ -107,6 +107,10 @@
   },
   "jest": {
     "preset": "jest-preset-preact",
+    "transformIgnorePatterns": [
+      "node_modules/.pnpm/(?!(@gnu-taler\\+taler-util))",
+      "\\.pnp\\.[^\\\/]+$"
+    ],
     "setupFiles": [
       "<rootDir>/tests/__mocks__/browserMocks.ts",
       "<rootDir>/tests/__mocks__/setupTests.ts"
@@ -118,4 +122,4 @@
       
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|po)$":
 "<rootDir>/tests/__mocks__/fileTransformer.js"
     }
   }
-}
+}
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]