Skip to content

CodeceptJS 4.x - Logs and stack traces refer to nonexistent files #5362

@nlespiaucq

Description

@nlespiaucq

🚩 [4.0.1-beta.23]

In case of errors, the logs are confusing as it refers to nonexistent with extension temp.mjs.
I understand it may come from the transpilation, but unfortunately, it decreases the developer experience and the navigation in the IDE.

Logs on failure:
Image

Navigation in the IDE clicking on a file path:
Image

Stack trace (in case of exception not handled):
Image

How to reproduce:

  • Clone: git clone git@github.com:nlespiaucq/examples-ts.git
  • Checkout the 4.x branch: git checkout 4.x-logs-on-failure
  • Install everything
cd codeceptjs-examples-ts
npm install
npx playwright install
  • Run the failed test: npx codeceptjs run

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions