(suite: string, spec: string, testsName: string)
| 1 | |
| 2 | export const setImageName = (suite: string, spec: string, testsName: string) => { |
| 3 | let testName = testsName |
| 4 | .replace(suite, "") |
| 5 | .replace(spec, ""); |
| 6 | testName = `${suite}-${spec}-${testName}` |
| 7 | .replace("should", "-") |
| 8 | .replace(/\s+/g, "-") |
| 9 | .replace(/\_+/ig, "_") |
| 10 | .replace(/[!$%^&*()+|~=`{}\[\]:";'<>?,.\/]/g, "") |
| 11 | .replace(/\-+/g, "-"); |
| 12 | |
| 13 | return testName; |
| 14 | }; |
no test coverage detected