« get me outta code hell

test: update coverage map for new/rearranged data unit tests - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-09-30 09:37:26 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-09-30 09:37:49 -0300
commit9b9aa750297a220d76b6602e1e23c891e50986d4 (patch)
treef202ff384368c26cd8b44b81985175f0da9f7054
parent34f2bb0a4b0e18a2495892627740484f41b60165 (diff)
test: update coverage map for new/rearranged data unit tests
-rw-r--r--coverage-map.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/coverage-map.js b/coverage-map.js
index 0ed9d60a..8bbf3057 100644
--- a/coverage-map.js
+++ b/coverage-map.js
@@ -22,10 +22,30 @@ export default function map(F) {
   if (match) {
     const f = match[1];
 
+    match = f.match(/^composite\/(.*?)\//);
+    if (match) {
+      switch (match[1]) {
+        case 'common-utilities':
+          return `src/data/things/composite.js`;
+        default:
+          return null;
+      }
+    }
+
     match = f.match(/^things\/(.*)\.js$/);
     if (match) {
       return `src/data/things/${match[1]}.js`;
     }
+
+    match = f.match(/^cacheable-object\.js$/);
+    if (match) {
+      return `src/data/things/cacheable-object.js`;
+    }
+
+    match = f.match(/^(templateCompositeFrom|compositeFrom)\.js$/);
+    if (match) {
+      return `src/data/things/composite.js`;
+    }
   }
 
   // unit/util/...