(testDirectory)
| 16 | * @returns {string} webpack root path, or empty string if not found |
| 17 | */ |
| 18 | const getWebpackRoot = (testDirectory) => { |
| 19 | const idx = testDirectory.lastIndexOf(`${path.sep}test${path.sep}`); |
| 20 | return idx !== -1 ? testDirectory.slice(0, idx) : ""; |
| 21 | }; |
| 22 | |
| 23 | /** |
| 24 | * Replaces absolute paths in a string with stable placeholders |
no test coverage detected