Skip to content

Commit b1c9d00

Browse files
test(): revert formatting changes to fixtures
1 parent ab7c661 commit b1c9d00

16 files changed

+65
-53
lines changed

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
tests/generated-definitions/*.ts
1+
packages/**/tests/generated-definitions/*.ts
2+
packages/**/tests/**/*.fixture.ts
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
/*
23
* -------------------------------------------------------
34
* THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
@@ -7,10 +8,10 @@
78
/* tslint:disable */
89
/* eslint-disable */
910
export interface Foo {
10-
a: string[];
11-
b?: Nullable<string[]>;
12-
c: Nullable<string>[];
13-
d?: Nullable<Nullable<string>[]>;
11+
a: string[];
12+
b?: Nullable<string[]>;
13+
c: Nullable<string>[];
14+
d?: Nullable<Nullable<string>[]>;
1415
}
1516

1617
type Nullable<T> = T | null;

packages/apollo/tests/generated-definitions/custom-header.fixture.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
/*
23
* -------------------------------------------------------
34
* THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)

packages/apollo/tests/generated-definitions/custom-scalar-default-type.fixture.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
/*
23
* -------------------------------------------------------
34
* THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)

packages/apollo/tests/generated-definitions/custom-scalar-type-mapping.fixture.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
/*
23
* -------------------------------------------------------
34
* THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)

packages/apollo/tests/generated-definitions/custom-scalar.fixture.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
/*
23
* -------------------------------------------------------
34
* THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
/*
23
* -------------------------------------------------------
34
* THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
@@ -6,5 +7,5 @@
67

78
/* tslint:disable */
89
/* eslint-disable */
9-
export type Foobar = 'Foo' | 'Bar' | 'Baz';
10+
export type Foobar = "Foo" | "Bar" | "Baz";
1011
type Nullable<T> = T | null;
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
/*
23
* -------------------------------------------------------
34
* THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
@@ -7,9 +8,9 @@
78
/* tslint:disable */
89
/* eslint-disable */
910
export enum Foobar {
10-
Foo = 'Foo',
11-
Bar = 'Bar',
12-
Baz = 'Baz',
11+
Foo = "Foo",
12+
Bar = "Bar",
13+
Baz = "Baz"
1314
}
1415

1516
type Nullable<T> = T | null;
Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
/*
23
* -------------------------------------------------------
34
* THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
@@ -7,30 +8,28 @@
78
/* tslint:disable */
89
/* eslint-disable */
910
export enum Animal {
10-
DOG = 'DOG',
11-
CAT = 'CAT',
11+
DOG = "DOG",
12+
CAT = "CAT"
1213
}
1314

1415
export enum Category {
15-
POST = 'POST',
16+
POST = "POST"
1617
}
1718

1819
export class Post {
19-
id: string;
20-
title: string;
21-
author: User;
22-
category: Category;
20+
id: string;
21+
title: string;
22+
author: User;
23+
category: Category;
2324
}
2425

2526
export class User {
26-
id: string;
27-
posts?: Nullable<Nullable<Post>[]>;
27+
id: string;
28+
posts?: Nullable<Nullable<Post>[]>;
2829
}
2930

3031
export abstract class IQuery {
31-
abstract getPosts():
32-
| Nullable<Nullable<Post>[]>
33-
| Promise<Nullable<Nullable<Post>[]>>;
32+
abstract getPosts(): Nullable<Nullable<Post>[]> | Promise<Nullable<Nullable<Post>[]>>;
3433
}
3534

3635
type Nullable<T> = T | null;
Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
/*
23
* -------------------------------------------------------
34
* THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
@@ -7,25 +8,23 @@
78
/* tslint:disable */
89
/* eslint-disable */
910
export enum Category {
10-
POST = 'POST',
11+
POST = "POST"
1112
}
1213

1314
export class Post {
14-
id: string;
15-
title: string;
16-
author: User;
17-
category: Category;
15+
id: string;
16+
title: string;
17+
author: User;
18+
category: Category;
1819
}
1920

2021
export class User {
21-
id: string;
22-
posts?: Nullable<Nullable<Post>[]>;
22+
id: string;
23+
posts?: Nullable<Nullable<Post>[]>;
2324
}
2425

2526
export abstract class IQuery {
26-
abstract getPosts():
27-
| Nullable<Nullable<Post>[]>
28-
| Promise<Nullable<Nullable<Post>[]>>;
27+
abstract getPosts(): Nullable<Nullable<Post>[]> | Promise<Nullable<Nullable<Post>[]>>;
2928
}
3029

3130
type Nullable<T> = T | null;

0 commit comments

Comments
 (0)