Skip to content

Commit 473d339

Browse files
committed
test(ast): move test files to __tests__ directory
1 parent cc17ceb commit 473d339

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

packages/utilities/ast/src/get-class-identifier.spec.ts renamed to packages/utilities/ast/src/__tests__/get-class-identifier.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import type { TSESTreeClass } from "./types";
1+
import type { TSESTreeClass } from "../types";
22

33
import path from "node:path";
44
import { parseForESLint } from "@typescript-eslint/parser";
55
import { AST_NODE_TYPES as T } from "@typescript-eslint/types";
66
import { simpleTraverse } from "@typescript-eslint/typescript-estree";
77

88
import { describe, expect, it } from "vitest";
9-
import { getFixturesRootDir } from "../../../../test";
10-
import { getClassIdentifier } from "./get-class-identifier";
9+
import { getFixturesRootDir } from "../../../../../test";
10+
import { getClassIdentifier } from "../get-class-identifier";
1111

1212
function parse(code: string) {
1313
return parseForESLint(code, {

packages/utilities/ast/src/get-function-identifier.spec.ts renamed to packages/utilities/ast/src/__tests__/get-function-identifier.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import type { TSESTreeFunction } from "./types";
1+
import type { TSESTreeFunction } from "../types";
22

33
import path from "node:path";
44
import { parseForESLint } from "@typescript-eslint/parser";
55
import { AST_NODE_TYPES as T } from "@typescript-eslint/types";
66
import { simpleTraverse } from "@typescript-eslint/typescript-estree";
77

88
import { describe, expect, it } from "vitest";
9-
import { getFixturesRootDir } from "../../../../test";
10-
import { getFunctionIdentifier } from "./get-function-identifier";
11-
import { isFunction } from "./is";
9+
import { getFixturesRootDir } from "../../../../../test";
10+
import { getFunctionIdentifier } from "../get-function-identifier";
11+
import { isFunction } from "../is";
1212

1313
function parse(code: string) {
1414
return parseForESLint(code, {

packages/utilities/ast/src/get-nested-return-statements.spec.ts renamed to packages/utilities/ast/src/__tests__/get-nested-return-statements.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { TSESTreeFunction } from "./types";
1+
import type { TSESTreeFunction } from "../types";
22

33
import path from "node:path";
44
import { parseForESLint } from "@typescript-eslint/parser";
@@ -7,9 +7,9 @@ import { simpleTraverse } from "@typescript-eslint/typescript-estree";
77
import tsx from "dedent";
88

99
import { describe, expect, it } from "vitest";
10-
import { getFixturesRootDir } from "../../../../test";
11-
import { getNestedReturnStatements } from "./get-nested-return-statements";
12-
import { isFunction } from "./is";
10+
import { getFixturesRootDir } from "../../../../../test";
11+
import { getNestedReturnStatements } from "../get-nested-return-statements";
12+
import { isFunction } from "../is";
1313

1414
function parse(code: string) {
1515
return parseForESLint(code, {

0 commit comments

Comments
 (0)