(fileName: string)
| 10 | }; |
| 11 | |
| 12 | export const getFileNameWithoutExtension = (fileName: string) => { |
| 13 | const name = getFileName(fileName); |
| 14 | const extension = getFileExtension(name); |
| 15 | return name.replace(`.${extension}`, ""); |
| 16 | }; |
| 17 | |
| 18 | export const getFileName = (filePath: string) => { |
| 19 | const fileName: string = filePath.split("/").pop()!; |
no test coverage detected