Hi, i'm running tests using Jest. ```beforeAll(() ...
# general
b
Hi, i'm running tests using Jest.
Copy code
beforeAll(() => mockProvider.setup());
afterEach(() => mockProvider.verify());
afterAll(() => mockProvider.finalize());
And I'm seeing this error. The Jest tests are run inside a docker container.
Copy code
[2022-03-21 16:53:42.071 +0000] INFO (19 on b0e28777c48a): pact-node@10.17.2: Creating Pact Server with options: 
{"timeout":30000,"consumer":"studio-frontend-consumer","cors":false,"dir":"/app/pacts","host":"127.0.0.1","log":"/app/logs/pact.log","logLevel":"INFO","pactfileWriteMode":"overwrite","provider":"pactflow-example-provider-restassured","spec":2,"ssl":false,"pactFileWriteMode":"overwrite"}
[2022-03-21 16:53:42.135 +0000] ERROR (19 on b0e28777c48a): pact-node@10.17.2: Pact Binary Error: /app/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.83/pact/lib/ruby/bin/ruby: line 6: /app/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.83/pact/lib/ruby/bin.real/ruby: No such file or directory

[2022-03-21 16:53:42.135 +0000] WARN (19 on b0e28777c48a): pact-node@10.17.2: Pact exited with code 127.
[2022-03-21 16:53:42.136 +0000] INFO (19 on b0e28777c48a): pact-node@10.17.2: Removing Pact process with PID: 47
My previous error led me to install
bash
in the container. Any help??
m
Best to ask these specific questions in #C9VBGLUM9 going forward
assuming you’ve taken a look at the notes for docker: docs.pact.io/docker
b
Yes @Matt (pactflow.io / pact-js / pact-go), after reading those docs, I managed to fix it.
🙌 1