Skip to content

Commit

Permalink
relax assertion toEqual -> toMatchObject to account for CI vs local d…
Browse files Browse the repository at this point in the history
…ifferences in release
  • Loading branch information
Lms24 committed Aug 14, 2024
1 parent 5ace0db commit 02b190e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ test.describe('client-side errors', () => {
}),
);

expect(errorEvent).toEqual({
expect(errorEvent).toMatchObject({
exception: {
values: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test.describe('server-side errors', () => {

const errorEvent = await errorEventPromise;

expect(errorEvent).toEqual({
expect(errorEvent).toMatchObject({
contexts: {
app: expect.any(Object),
cloud_resource: expect.any(Object),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ test.describe('tracing in dynamically rendered (ssr) routes', () => {
expect(clientPageloadTraceId).toEqual(serverPageRequestTraceId);
expect(clientPageloadParentSpanId).toEqual(serverPageloadSpanId);

expect(clientPageloadTxn).toEqual({
expect(clientPageloadTxn).toMatchObject({
contexts: {
trace: {
data: expect.objectContaining({
Expand Down Expand Up @@ -62,7 +62,7 @@ test.describe('tracing in dynamically rendered (ssr) routes', () => {
type: 'transaction',
});

expect(serverPageRequestTxn).toEqual({
expect(serverPageRequestTxn).toMatchObject({
breadcrumbs: expect.any(Array),
contexts: {
app: expect.any(Object),
Expand Down

0 comments on commit 02b190e

Please sign in to comment.