syzzana / indent-list-reporter

Playwright list reporter with colorful terminal and indentation
MIT License
2 stars 1 forks source link

use both playwright config files with(.js and .ts) #56

Closed syzzana closed 6 months ago

syzzana commented 7 months ago

No matter if the file is a js or ts the tests should work.

pakhilov commented 6 months ago

Hello, I can confirm that the latest version, 1.0.12, doesn't work if the playwright.config.ts file is present in the project. It begins to work after renaming it to .js. Error message: Error: Cannot find module 'C:\Users\username\Repos\projectName\playwright.config.js' imported from C:\Users\username\Repos\projectName\node_modules\indent-list-reporter\dist\src\loggin-tests-data.js

syzzana commented 6 months ago

Hi @pakhilov thank you for your comment. I will try to fix this as soon as possible, during this weekend!

syzzana commented 6 months ago

Tested with version 1.1.1 for playwright.config.ts file with @pakhilov's suggestion. Looks good for now.