Skip to content

isValidJSValue does not always return an array #601

@li-kai

Description

@li-kai

I'm not sure if this is an expected behaviour of the method, as the docs say that it returns an array of errors. Here's a failing test case in mocha:

describe('isValidJSValue', () => {
  it('is returning an array of errors', () => {
    expect(isValidJSValue('a', GraphQLInt)).to.be.an.instanceof(Array);
  });
});

Metadata

Metadata

Assignees

No one assigned

    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