Skip to content

S3 test fails when updating to node 24.5.0 #1317

@sotojn

Description

@sotojn

We've encountered an issue doing dependency updates because the behavior of a jest function in our test changed because of an update to node.

https://github.com/terascope/file-assets/actions/runs/16728082895/job/47349099429

It's unclear to me as to why this is happening. There are examples of us using the jest function objectContains() within teraslice but those tests don't seem to fail. It's important to point out that the way we use this function in this test is nested.

const result = createRequestHandlerOptions(httpOptions);
expect(result).toEqual({
httpsAgent: expect.objectContaining({
options: {
rejectUnauthorized: true,
ca: ['-----BEGIN CERTIFICATE-----\n'
+ 'MIICUDCCAdoCBDaM1tYwDQYJKoZIhvcNAQEEBQAwgY8xCzAJBgNVBAYTAlVTMRMw\n'
+ '...\n'
+ 'iKlsPBRbNdq5cNIuIfPS8emrYMs=\n'
+ '-----END CERTIFICATE-----'],
noDelay: true,
path: null
}
})
});
});
});

No related issues were found in node or jest yet. This could potentially be resolved in either a new node update or jest update.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions