Skip to content

Commit ca6077d

Browse files
authored
Move tests next to source files (#27)
1 parent 1112f3f commit ca6077d

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

.changeset/proud-countries-bathe.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"aws-sdk-js-codemod": patch
3+
---
4+
5+
Move test files next to source files

src/__tests__/cli.spec.ts renamed to src/cli.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { spawn } from "child_process";
22

33
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
44
// @ts-ignore: package.json will be imported from dist folders
5-
import { version } from "../../package.json"; // eslint-disable-line
6-
import { run } from "../cli";
5+
import { version } from "../package.json"; // eslint-disable-line
6+
import { run } from "./cli";
77

88
jest.mock("child_process");
99

src/transforms/v2-to-v3/utils/__tests__/getClientPackageName.spec.ts renamed to src/transforms/v2-to-v3/utils/getClientPackageName.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { CLIENT_PACKAGE_NAMES_MAP } from "../config";
2-
import { getV3ClientPackageName } from "../getV3ClientPackageName";
1+
import { CLIENT_PACKAGE_NAMES_MAP } from "./config";
2+
import { getV3ClientPackageName } from "./getV3ClientPackageName";
33

44
describe(getV3ClientPackageName.name, () => {
55
it.each(Object.entries(CLIENT_PACKAGE_NAMES_MAP))(

src/transforms/v2-to-v3/utils/__tests__/getV3ClientName.spec.ts renamed to src/transforms/v2-to-v3/utils/getV3ClientName.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { CLIENT_NAMES_MAP } from "../config";
2-
import { getV3ClientName } from "../getV3ClientName";
1+
import { CLIENT_NAMES_MAP } from "./config";
2+
import { getV3ClientName } from "./getV3ClientName";
33

44
describe(getV3ClientName.name, () => {
55
it.each(Object.entries(CLIENT_NAMES_MAP))("getV3ClientName('%s') === '%s'", (input, output) => {

0 commit comments

Comments
 (0)