Hey guys,
I’ve a couple of integration tests that update data and returns it, but those tests fails on circleci, they always return the old values. Is that on purpose? I mean, like circle doesn’t allow you to persist data during test?
example:
it('Member should be able to update a site', async function () {
let gid = toGlobalId(SiteModel.name, site.id);
let newUrl = 'https://newmember.url';
const result = await graphql(schema, updateMutation({siteId: gid, url: newUrl}), {}, {user: member});
const {updateSite} = result.data;
should.exist(updateSite);
updateSite.site.url.should.equal(newUrl);
should.not.exist(result.errors);
});
This one will fail on circleci, updateSite.site
will have the old value.
Thanks for you time,
Alex