src/DataSeeding/Seeders/CustomerSeeder.ts   A
last analyzed

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 11
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 8
mnd 0
bc 0
fnc 1
dl 0
loc 11
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
rs 10

1 Function

Rating   Name   Duplication   Size   Complexity  
A CustomerSeeder.run 0 3 1
1
import { Seeder } from '@concepta/typeorm-seeding';
2
import { CustomerFactory } from '../Factories/CustomerFactory';
3
import { Customer } from 'src/Domain/Customer/Customer.entity';
4
5
export class CustomerSeeder extends Seeder {
6
  async run() {
7
    const customerFactory = this.factory(CustomerFactory);
8
    customerFactory.save(new Customer('Aperture Science'));
9
  }
10
}
11