Skip to content

Commit

Permalink
Fix: updated orm config test
Browse files Browse the repository at this point in the history
  • Loading branch information
Villarley committed Dec 22, 2024
1 parent ecc65c1 commit 05d5766
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/config/ormconfig.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import { DataSource } from 'typeorm';
import { TestEntity } from '../entities/testEntity';
import { User } from '../entities/User';
import { Product } from '../entities/Product';
import { ProductType } from '../entities/ProductType';
import { ProductVariant } from '../entities/ProductVariant';
import { Attribute } from '../entities/Attribute';
import { AttributeValue } from '../entities/AttributeValue';

export const testDataSource = new DataSource({
type: 'sqlite',
database: ':memory:',
synchronize: true,
entities: [TestEntity, User]
entities: [TestEntity, User, Product, ProductType, ProductVariant, Attribute, AttributeValue]
});

0 comments on commit 05d5766

Please sign in to comment.