Skip to content

CI: Tests failing on main due to local moduleNameMapper for tasknotes-nlp-core #1782

@martin-forge

Description

@martin-forge

Hey! I was taking a look at why the tests were failing in CI across the recent PRs and tracked it down.

It looks like jest.config.js has a moduleNameMapper mapping ^tasknotes-nlp-core$ to <rootDir>/../tasknotes-nlp-core/src/index.ts. Since GitHub Actions only checks out the main repository, it crashes when Jest looks for the sibling directory.

I didn't want to just open a PR removing that line since it looks like you rely on it for side-by-side local development across the two repos. Let me know if you have a preferred way you'd like to handle this (e.g., using an environment variable for CI, or moving local overrides to a jest.local.config.js ignored by git). Happy to write the PR for it once I know your preferred approach!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions