-
Notifications
You must be signed in to change notification settings - Fork 23
[Bug]: E2E tests fail if --ignore-scripts used with npm #2649
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working