Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aecorredor committed Mar 17, 2024
1 parent d70eade commit 639898a
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 18 deletions.
18 changes: 4 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@graphql-tools/schema": "^9.0.12",
"@typedorm/common": "1.16.0-beta.2",
"@typedorm/core": "1.16.0-beta.2",
"@typedorm/document-client": "^1.16.0-beta.2",
"@typedorm/document-client": "1.16.0-beta.2",
"async-retry": "^1.3.3",
"axios": "^1.3.4",
"dataloader": "^2.2.2",
Expand Down
6 changes: 5 additions & 1 deletion src/config/default.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
const config = {};
const config = {
Auth: {
accessTokenSecret: process.env.ACCESS_TOKEN_SECRET,
},
};

export default config;
4 changes: 3 additions & 1 deletion src/resolvers/user/user-resolvers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ describe('user resolvers', () => {

expect(emailCodes.length).toBe(2);

const { data: confirmEmailData1 } = await testClient.mutate<
const { data: confirmEmailData1, errors } = await testClient.mutate<
ConfirmEmailMutation,
ConfirmEmailMutationVariables
>(ConfirmEmailDocument, {
Expand All @@ -99,6 +99,8 @@ describe('user resolvers', () => {
},
});

console.log(JSON.stringify(errors, null, 2));

expect(confirmEmailData1.confirmEmail.accessToken).toEqual(
expect.any(String)
);
Expand Down
1 change: 0 additions & 1 deletion src/test/test-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { createMercuriusTestClient } from 'mercurius-integration-testing';
import { createAccessToken } from '../utils/auth';
import { createConfig } from '../config/index';
import { connections } from '../test/test-dynamo';
import '../test/test-sqs';
import { createTestApp } from '../server';
import { JwtUser } from '../typings/user';

Expand Down

0 comments on commit 639898a

Please sign in to comment.