Content-Length: 221924 | pFad | http://github.com/tapjs/tapjs/issues/1048

CF using --tsconfig seems not working · Issue #1048 · tapjs/tapjs · GitHub
Skip to content

using --tsconfig seems not working #1048

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
MkLHX opened this issue Jan 24, 2025 · 1 comment
Open

using --tsconfig seems not working #1048

MkLHX opened this issue Jan 24, 2025 · 1 comment

Comments

@MkLHX
Copy link

MkLHX commented Jan 24, 2025

Hi there, I'm trying to use tap in my tests. path alias isn't resolved.

npx tap --tsconfig=tests/tsconfig.json tests/unit/utils/base64.utils.test.ts
 SKIP  tests/unit/utils/base64.utils.test.ts 0 OK 512ms
 ~ no tests found

2> tests/unit/utils/base64.utils.test.ts

node:internal/modules/run_main:104
    triggerUncaughtException(
    ^
Error: Cannot find package '@src/utils' imported from

My project structure is :

project /
        |__src
        |__tests/
                |__tsconfig.json
        |__tsconfig.json

I'd like to call tests/tsconfig.json running tap like :

npx tap --tsconfig=tests/tsconfig.json tests/mytestfile.test.ts
@TheVaan
Copy link

TheVaan commented Jan 28, 2025

I'm having the same issue! But for some reason only on my ci machine. On my local machine everything works perfectly.

The node version of CI and my local machine are 22.12. For CI I'm using a docker node image. My local machine is on Mac OS 14.7.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/tapjs/tapjs/issues/1048

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy