Skip to content

Commit 0d2c064

Browse files
fix(): resolve merge conflicts
2 parents 5dcfa26 + 0e661c8 commit 0d2c064

134 files changed

Lines changed: 3839 additions & 1345 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ jobs:
123123
command: docker ps
124124
- run:
125125
name: Integration tests
126-
command: npm run integration-test
126+
command: npm run test:integration
127127

128128
codechecks_benchmarks:
129129
working_directory: ~/nest

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion

integration/typegraphql/e2e/typegraphql.spec.ts renamed to integration/graphql-code-first/e2e/code-first.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Test } from '@nestjs/testing';
33
import * as request from 'supertest';
44
import { ApplicationModule } from '../src/app.module';
55

6-
describe('TypeGraphQL', () => {
6+
describe('GraphQL - Code-first', () => {
77
let app: INestApplication;
88

99
beforeEach(async () => {

integration/typegraphql/e2e/guards-filters.spec.ts renamed to integration/graphql-code-first/e2e/guards-filters.spec.ts

File renamed without changes.

integration/typegraphql/e2e/pipes.spec.ts renamed to integration/graphql-code-first/e2e/pipes.spec.ts

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -32,24 +32,7 @@ describe('GraphQL Pipes', () => {
3232
extensions: {
3333
code: 'INTERNAL_SERVER_ERROR',
3434
exception: {
35-
message: {
36-
error: 'Bad Request',
37-
message: [
38-
{
39-
children: [],
40-
constraints: {
41-
length:
42-
'description must be longer than or equal to 30 characters',
43-
},
44-
property: 'description',
45-
target: {
46-
ingredients: [],
47-
title: 'test',
48-
},
49-
},
50-
],
51-
statusCode: 400,
52-
},
35+
message: 'Bad Request Exception',
5336
response: {
5437
error: 'Bad Request',
5538
message: [
@@ -77,24 +60,7 @@ describe('GraphQL Pipes', () => {
7760
line: 2,
7861
},
7962
],
80-
message: {
81-
error: 'Bad Request',
82-
message: [
83-
{
84-
children: [],
85-
constraints: {
86-
length:
87-
'description must be longer than or equal to 30 characters',
88-
},
89-
property: 'description',
90-
target: {
91-
ingredients: [],
92-
title: 'test',
93-
},
94-
},
95-
],
96-
statusCode: 400,
97-
},
63+
message: 'Bad Request Exception',
9864
path: ['addRecipe'],
9965
},
10066
],
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
# -----------------------------------------------
2-
# !!! THIS FILE WAS GENERATED BY TYPE-GRAPHQL !!!
3-
# !!! DO NOT MODIFY THIS FILE BY YOURSELF !!!
4-
# -----------------------------------------------
1+
# ------------------------------------------------------
2+
# THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
3+
# ------------------------------------------------------
54

65
"""Date custom scalar type"""
76
scalar Date

integration/typegraphql/src/app.module.ts renamed to integration/graphql-code-first/src/app.module.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ import { RecipesModule } from './recipes/recipes.module';
99
GraphQLModule.forRoot({
1010
debug: false,
1111
installSubscriptionHandlers: true,
12-
autoSchemaFile: join(process.cwd(), 'integration/typegraphql/schema.gql'),
12+
autoSchemaFile: join(
13+
process.cwd(),
14+
'integration/graphql-code-first/schema.gql',
15+
),
1316
}),
1417
],
1518
})

integration/typegraphql/src/common/filters/unauthorized.filter.ts renamed to integration/graphql-code-first/src/common/filters/unauthorized.filter.ts

File renamed without changes.

integration/typegraphql/src/common/guards/auth.guard.ts renamed to integration/graphql-code-first/src/common/guards/auth.guard.ts

File renamed without changes.

integration/typegraphql/src/common/interceptors/data.interceptor.ts renamed to integration/graphql-code-first/src/common/interceptors/data.interceptor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ import { tap } from 'rxjs/operators';
1010
@Injectable()
1111
export class DataInterceptor implements NestInterceptor {
1212
intercept(context: ExecutionContext, next: CallHandler): Observable<any> {
13-
return next.handle().pipe(tap(data => console.log(data)));
13+
return next.handle().pipe(tap(data => data));
1414
}
1515
}

0 commit comments

Comments
 (0)