Skip to content

Commit

Permalink
organize folder by modules
Browse files Browse the repository at this point in the history
  • Loading branch information
argentinaluiz committed Feb 17, 2022
1 parent 4534938 commit fc48e07
Show file tree
Hide file tree
Showing 33 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export default {
// setupFiles: [],

// A list of paths to modules that run some code to configure or set up the testing framework before each test
setupFilesAfterEnv: ['./@core/domain/@seedwork/tests/validation.ts'],
setupFilesAfterEnv: ['./@core/@seedwork/domain/tests/validation.ts'],

// The number of seconds after which a test is considered as slow and reported as such in the results.
// slowTestThreshold: 5,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import AggregateRoot from "../@seedwork/entity/aggregate-root";
import UniqueEntityId from "../@seedwork/entity/unique-entity-id";
import AggregateRoot from "../../../@seedwork/domain/entity/aggregate-root";
import UniqueEntityId from "../../../@seedwork/domain/entity/unique-entity-id";
import CategoryValidatorFactory from "../validators/category.validator";
import ValidatorRules from "../@seedwork/validators/validator-rules";
import ValidatorRules from "../../../@seedwork/domain/validators/validator-rules";

export type CategoryProperties = {
name: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import RepositoryInterface from "../@seedwork/repository-interface";
import RepositoryInterface from "../../../@seedwork/domain/repository-interface";
import Category from "../entities/category";

export default interface CategoryRepository
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CategoryProperties } from "../entities/category";
import ClassValidator from "../@seedwork/validators/class.validator";
import ClassValidator from "../../../@seedwork/domain/validators/class.validator";
import { IsBoolean, IsNotEmpty, IsOptional, IsString, MaxLength } from "class-validator";

export default class CategoryValidatorFactory {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import UniqueEntityId from "@core/domain/@seedwork/entity/unique-entity-id";
import UniqueEntityId from "../../../../@seedwork/domain/entity/unique-entity-id";
import Category, {
CategoryProperties,
} from "../../../domain/entities/category";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Entity from "../../../domain/@seedwork/entity/entity";
import UniqueEntityId from "../../../domain/@seedwork/entity/unique-entity-id";
import NotFoundError from "../../../domain/@seedwork/errors/not-found.error";
import RepositoryInterface from "../../../domain/@seedwork/repository-interface";
import Entity from "../../../../@seedwork/domain/entity/entity";
import UniqueEntityId from "../../../../@seedwork/domain/entity/unique-entity-id";
import NotFoundError from "../../../../@seedwork/domain/errors/not-found.error";
import RepositoryInterface from "../../../../@seedwork/domain/repository-interface";

type Model<ModelProps> = { id: string } & ModelProps;

Expand Down

0 comments on commit fc48e07

Please sign in to comment.