Skip to content

Commit

Permalink
Separate test folder directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
Neloreck committed Oct 31, 2023
1 parent ff2d570 commit 6b7a7c2
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 9 deletions.
1 change: 1 addition & 0 deletions cli/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ module.exports = {
coveragePathIgnorePatterns: ["/node_modules/"],
moduleNameMapper: {
"^@/(.*)": "<rootDir>/src/$1",
"^#/(.*)": "<rootDir>/test/$1",
},
verbose: true,
};
4 changes: 0 additions & 4 deletions src/__test__/fixtures/mocks/index.ts

This file was deleted.

3 changes: 2 additions & 1 deletion src/planner/DefaultPlanner.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { describe, expect, it, jest } from "@jest/globals";

import { GenericAction, TestUnit } from "@/__test__/fixtures/mocks";
import { GenericAction, TestUnit } from "#/fixtures/mocks";

import { Action } from "@/planner/Action";
import { DefaultPlanner } from "@/planner/DefaultPlanner";
import { State } from "@/state/State";
Expand Down
3 changes: 2 additions & 1 deletion src/utils/graph/DirectedGraph.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { describe, expect, it } from "@jest/globals";

import { createBasicConnectedTestGraph, createBasicTestGraph } from "@/__test__/fixtures/utils";
import { createBasicConnectedTestGraph, createBasicTestGraph } from "#/fixtures/utils";

import { DirectedGraph } from "@/utils/graph/DirectedGraph";
import { Edge } from "@/utils/graph/Edge";

Expand Down
3 changes: 2 additions & 1 deletion src/utils/graph/Path.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { describe, expect, it } from "@jest/globals";

import { createBasicTestPath } from "@/__test__/fixtures/utils";
import { createBasicTestPath } from "#/fixtures/utils";

import { Edge } from "@/utils/graph/Edge";
import { Path } from "@/utils/graph/Path";

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { GenericAction } from "@/__test__/fixtures/mocks/GenericAction";
import { GenericAction } from "#/fixtures/mocks/GenericAction";

import { State } from "@/state/State";
import { IUnit } from "@/unit/IUnit";

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { GenericAction } from "@/__test__/fixtures/mocks/GenericAction";
import { GenericAction } from "#/fixtures/mocks/GenericAction";

import { State } from "@/state/State";

export class TransitionAction<T = unknown> extends GenericAction<T> {
Expand Down
4 changes: 4 additions & 0 deletions test/fixtures/mocks/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export * from "#/fixtures/mocks/GenericAction";
export * from "#/fixtures/mocks/StepPreconditionAction";
export * from "#/fixtures/mocks/TransitionAction";
export * from "#/fixtures/mocks/TestUnit";
File renamed without changes.

0 comments on commit 6b7a7c2

Please sign in to comment.