@@ -38,7 +38,7 @@ const testEntity = async (generatedTypes: any[], expectedEntity: any) => {
38
38
expect ( methods . length ) . toBe ( expectedEntity . methods . length ) ;
39
39
} ;
40
40
41
- describe . concurrent ( 'Schema code generator' , ( ) => {
41
+ describe ( 'Schema code generator' , { concurrent : true } , ( ) => {
42
42
test ( 'Should generate nothing for non entity types' , ( ) => {
43
43
const codegen = createSchemaCodeGen ( `
44
44
type Foo {
@@ -217,7 +217,7 @@ describe.concurrent('Schema code generator', () => {
217
217
return 0
218
218
} else {
219
219
return value.toI32()
220
- }
220
+ }
221
221
` ,
222
222
} ,
223
223
{
@@ -313,7 +313,7 @@ describe.concurrent('Schema code generator', () => {
313
313
params : [ ] ,
314
314
returnType : new NamedType ( 'WalletLoader' ) ,
315
315
body : `
316
- return new WalletLoader("Account", this.get('id')!.toString(), "wallets")
316
+ return new WalletLoader("Account", this.get('id')!.toString(), "wallets")
317
317
` ,
318
318
} ,
319
319
] ,
@@ -566,7 +566,7 @@ describe.concurrent('Schema code generator', () => {
566
566
id: Bytes!
567
567
related: [RelatedBytes!]! @derivedFrom(field: "related")
568
568
}
569
-
569
+
570
570
type RelatedBytes @entity {
571
571
id: ID!
572
572
related: WithBytes!
@@ -647,17 +647,17 @@ describe.concurrent('Schema code generator', () => {
647
647
test ( 'no derived loader for interface' , ( ) => {
648
648
const codegen = createSchemaCodeGen ( `
649
649
interface IExample {
650
- id: ID!
650
+ id: ID!
651
651
main: Main!
652
652
num: Int!
653
653
}
654
-
654
+
655
655
type Example1 implements IExample @entity {
656
- id: ID!
656
+ id: ID!
657
657
main: Main!
658
658
num: Int!
659
659
}
660
-
660
+
661
661
type Main @entity {
662
662
id: ID!
663
663
examples: [IExample!]! @derivedFrom(field: "main")
0 commit comments