syzzana / indent-list-reporter

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

Error running tests with Playwright 1.41.1 #53

Closed Valiantsin2021 closed 7 months ago

Valiantsin2021 commented 7 months ago

In the package.json: "type": "module", devDependencies: "@faker-js/faker": "^8.4.0", "@playwright/test": "^1.41.1", "@types/node": "^20.11.10", "allure-commandline": "2.26.0", "allure-playwright": "2.11.1", "dotenv": "16.0.3", "eslint": "8.56.0", "eslint-config-prettier": "9.1.0", "eslint-plugin-playwright": "^0.22.1", "eslint-plugin-prettier": "5.1.3", "husky": "^4.3.8", "indent-list-reporter": "^1.0.9", "prettier": "3.2.4", "rimraf": "3.0.0" Playwright config: reporter: [[ 'indent-list-reporter', { baseColors: { specFileNameColor: 'white', suiteDescriptionColor: 'blue', testCaseTitleColor: 'magenta' } } ],]

The error: Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'c:\testing frameworks\node\playwright\Playwright www.automationexercise.com\node_modules\indent-list-reporter\dist\src\TestsPerSpecFile' imported from c:\testing frameworks\node\playwright\Playwright www.automationexercise.com\node_modules\indent-list-reporter\dist\src\indent-list-reporter.js at new NodeError (node:internal/errors:406:5) at finalizeResolution (node:internal/modules/esm/resolve:233:11) at moduleResolve (node:internal/modules/esm/resolve:845:10) at defaultResolve (node:internal/modules/esm/resolve:1043:11) at nextResolve (node:internal/modules/esm/hooks:833:28) at resolve (c:\testing frameworks\node\playwright\Playwright www.automationexercise.com\node_modules\playwright\lib\transform\esmLoader.js:34:24) at nextResolve (node:internal/modules/esm/hooks:833:28) at Hooks.resolve (node:internal/modules/esm/hooks:278:30) at handleMessage (node:internal/modules/esm/worker:168:24) at Immediate.checkForMessages (node:internal/modules/esm/worker:117:28) { url: 'file:///c:/testing%20frameworks/node/playwright/Playwright%20www.automationexercise.com/node_modules/indent-list-reporter/dist/src/TestsPerSpecFile', code: 'ERR_MODULE_NOT_FOUND' }

syzzana commented 7 months ago

Hi Valiantsin2021, thank you for opening the issue, I will check it as soon as possible. Mostly during the weekend. I'll do my best!! :)

Valiantsin2021 commented 7 months ago

Hi Valiantsin2021, thank you for opening the issue, I will check it as soon as possible. Mostly during the weekend. I'll do my best!! :)

Thank you !

syzzana commented 7 months ago

Hi @Valiantsin2021 Issue should be fixed now, if you get an error if playwright.config.ts can not be found, then just rename the file to playwright.config.js and it should work. Meanwhile I will take care that it works for both playwright config files (.js & .ts).