Skip to content

fix: revert running test in /dist #6542

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

mhahn2003
Copy link
Contributor

Reverting the changes done by this pr, fixing the strip-only errors instead of running in /dist

TICKET: CAAS-325

@mhahn2003
Copy link
Contributor Author

NOTE: haven't resolved issue for sdk-coin-trx, there seems to be weird issues with imports if running in test,

node:internal/modules/esm/resolve:274
    throw new ERR_MODULE_NOT_FOUND(
          ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/michaelhahn/bitgo/BitGoJS/modules/sdk-coin-trx/src/lib/builder' imported from /Users/michaelhahn/bitgo/BitGoJS/modules/sdk-coin-trx/test/unit/index.ts
    at finalizeResolution (node:internal/modules/esm/resolve:274:11)
    at moduleResolve (node:internal/modules/esm/resolve:859:10)
    at defaultResolve (node:internal/modules/esm/resolve:983:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:801:12)
    at #cachedDefaultResolve (node:internal/modules/esm/loader:725:25)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:708:38)
    at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:309:38)
    at #link (node:internal/modules/esm/module_job:208:49) {
  code: 'ERR_MODULE_NOT_FOUND',
  url: 'file:///Users/michaelhahn/bitgo/BitGoJS/modules/sdk-coin-trx/src/lib/builder'
}

Node.js v24.4.1
✖ test/unit/index.ts (158.860958ms)

have tried importing from builder.js, builder.ts, index, index.js, index.ts

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

Successfully merging this pull request may close these issues.

1 participant