diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-10-01 17:01:21 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-10-01 17:04:16 -0300 |
commit | ab7591e45e7e31b4e2c0e2f81e224672145993fa (patch) | |
tree | 11dcccc57e71424baa3b73a3eca58dabc56dca05 /coverage-map.js | |
parent | dfcf911501211bbfc64b8ce6a964b70c6406447f (diff) |
data, test: refactor utilities into own file
Primarily for more precies test coverage mapping, but also to make navigation a bit easier and consolidate complex functions with lots of imports out of the same space as other, more simple or otherwise specialized files.
Diffstat (limited to 'coverage-map.js')
-rw-r--r-- | coverage-map.js | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/coverage-map.js b/coverage-map.js index 8bbf3057..beff9e8a 100644 --- a/coverage-map.js +++ b/coverage-map.js @@ -22,14 +22,9 @@ export default function map(F) { if (match) { const f = match[1]; - match = f.match(/^composite\/(.*?)\//); + match = f.match(/^composite\/(.*)$/); if (match) { - switch (match[1]) { - case 'common-utilities': - return `src/data/things/composite.js`; - default: - return null; - } + return `src/data/composite/${match[1]}`; } match = f.match(/^things\/(.*)\.js$/); |