Skip to content

json object logs display " instead of " #107

@sadabnepal

Description

@sadabnepal

My Playwright Test:

import { expect, test } from '@playwright/test';

test('graphql: query operation', async ({ request }) => {

const query = `query Query {
                characters(page: 2, filter: {name: "Morty"}) {
                    info {
                    count
                    }
                    results {
                    name
                    }
                }
            }`;

const response = await request.post('https://rickandmortyapi.com/graphql', {
    data: { query: query }
});

expect(response.status()).toEqual(200);

const body = await response.json();

console.log(JSON.stringify(body, null, 4));

});

Logs of API response:
json { "data": { "characters": { "info": { "count": 68 }, "results": [ { "name": "Hammerhead Morty" }, { "name": "Lawyer Morty" } ] } } }

Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions