Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'jest-raw-loader.js')
-rw-r--r--jest-raw-loader.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/jest-raw-loader.js b/jest-raw-loader.js
new file mode 100644
index 000000000..16af98c7e
--- /dev/null
+++ b/jest-raw-loader.js
@@ -0,0 +1,9 @@
+// jest-raw-loader compatibility with Jest version 28.
+// See: https://github.com/keplersj/jest-raw-loader/pull/239
+module.exports = {
+ process: (content) => {
+ return {
+ code: 'module.exports = ' + JSON.stringify(content),
+ }
+ },
+}