cypress-failed-log icon indicating copy to clipboard operation
cypress-failed-log copied to clipboard

Throwing error every time the test if failed - "path.basename is not a function"

Open kalpeshchilka opened this issue 4 years ago • 1 comments

@bahmutov When running our e2e test with the cypress-failed-log plugin, whenever the test is failed for any reason, "path.basename is not a function" is displayed in the cypress runner.

Using below versions: "cypress-failed-log": "^2.9.1", "cypress": "^8.3.1", "@neuralegion/cypress-har-generator": "^5.2.3"

One possible theory is that this error started to pop up after installing a cypress-har-generator plugin. Maybe a module collision or something?

Refer attached screenshot for reference error.

Any help or workaround for this issue will be really appreciated.

Screenshot 2021-10-01 at 11 11 59 AM

kalpeshchilka avatar Oct 01 '21 05:10 kalpeshchilka

Probably - I do not see this error myself, so looking for a reproducible example

bahmutov avatar Oct 01 '21 20:10 bahmutov