Skip to content

[Bug]: E2E tests fail if --ignore-scripts used with npm #2649

@JoeCap08055

Description

@JoeCap08055

What happened?

Description

Due to a recent change to specifiy --ignore-scripts when running npm commands in the CI pipeline (in order to prevent potential supply-chain attack vulnerabilities), E2E tests now fail to run in the CI pipeline with the following error:

  1) Uncaught error outside test suite:
     Uncaught Error: Cannot find module '../../../build/Release/node_datachannel.node'
Require stack:
- /Users/joecaputo/src/frequency-chain/frequency/e2e/node_modules/node-datachannel/dist/esm/lib/node-datachannel.mjs
      at node:internal/modules/cjs/loader:1401:15
      at m._resolveFilename (file:///Users/joecaputo/src/frequency-chain/frequency/e2e/node_modules/tsx/dist/register-B7jrtLTO.mjs:1:789)
      at defaultResolveImpl (node:internal/modules/cjs/loader:1057:19)
      at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1062:22)
      at Function._load (node:internal/modules/cjs/loader:1211:37)
      at TracingChannel.traceSync (node:diagnostics_channel:322:14)
      at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
      at Module.require (node:internal/modules/cjs/loader:1487:12)
      at require (node:internal/modules/helpers:135:16)
      at <anonymous> (/Users/joecaputo/src/frequency-chain/frequency/e2e/node_modules/node-datachannel/src/lib/node-datachannel.ts:2:1)

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions