GitHub
06/12/2024, 11:14 AMgyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
CXX(target) Release/obj.target/pact/native/addon.o
CXX(target) Release/obj.target/pact/native/ffi.o
../native/ffi.cc:2:10: fatal error: 'pact-cpp.h' file not found
#include "pact-cpp.h"
^~~~~~~~~~~~
1 error generated.
make: *** [Release/obj.target/pact/native/ffi.o] Error 1
After running ./script/download-libs.sh, then npm install succeeds, but if I do npm run test, then that fails too:
1) FFI integration test for the HTTP Consumer API
with binary data
generates a pact with success:
Error: Request failed with status code 500
at createError (node_modules/axios/lib/core/createError.js:16:15)
at settle (node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:293:11)
at IncomingMessage.emit (node:events:539:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
Steps to reproduce
1. Do fresh checkout
2. Do npm install
3. Observe that the install doesn't work
4. Run ./scripts/download-libs.sh
5. Run npm install and then npm run test
6. Observe that the test run also failed
Relevant log files
Here's the failing part of the test run - no additional helpful output unfortunately:
FFI integration test for the HTTP Consumer API
with JSON data
✔ generates a pact with success
✔ generates a pact with failure
with binary data
1) generates a pact with success
using a plugin (protobufs)
- generates a pact with success
with multipart data
[]
✔ generates a pact with success
pact-foundation/pact-js-coreGitHub
06/12/2024, 11:14 AM