Skip to content

Commit

Permalink
Revert "Fix: updated workflows"
Browse files Browse the repository at this point in the history
This reverts commit ba10ea7.
  • Loading branch information
Villarley committed Dec 22, 2024
1 parent c1affb6 commit 71e1c10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions src/config/ormconfig.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ import { ProductVariant } from '../entities/ProductVariant';
import { Attribute } from '../entities/Attribute';
import { AttributeValue } from '../entities/AttributeValue';

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

export default testDataSource;
2 changes: 1 addition & 1 deletion src/utils/test-utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import testDataSource from "../config/ormconfig.test";
import { testDataSource } from "../config/ormconfig.test";

export const setupTestDB = async () => {
if (!testDataSource.isInitialized) {
Expand Down

0 comments on commit 71e1c10

Please sign in to comment.