Skip to content

Commit b84987f

Browse files
committed
Move to /testing
Signed-off-by: Connor Avery <[email protected]>
1 parent 4ec76f0 commit b84987f

34 files changed

+61
-47
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ repos:
8686
types_or: [ts, tsx, javascript, jsx, json]
8787
pass_filenames: false
8888

89-
- id: lint-common
90-
name: Lint common testing
89+
- id: lint-common-utilities
90+
name: Lint common utilities
9191
entry: npm
92-
args: ["run", "--prefix=packages/common", "lint"]
92+
args: ["run", "--prefix=packages/common/utilities", "lint"]
9393
language: system
9494
files: ^packages\/common\/src
9595
types_or: [ts, tsx, javascript, jsx, json]
@@ -98,7 +98,7 @@ repos:
9898
- id: lint-common-testing
9999
name: Lint common testing
100100
entry: npm
101-
args: ["run", "--prefix=packages/common/tests", "lint"]
101+
args: ["run", "--prefix=packages/common/testing", "lint"]
102102
language: system
103103
files: ^packages\/common\/testing
104104
types_or: [ts, tsx, javascript, jsx, json]

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ lint-node: compile-node
126126
npm run lint --workspace packages/statusLambda
127127
npm run lint --workspace packages/serviceSearchClient
128128
npm run lint --workspace packages/common/utilities
129-
npm run lint --workspace packages/common/tests
129+
npm run lint --workspace packages/common/testing
130130
npm run lint --workspace packages/distanceSelling
131131

132132
lint-samtemplates:
@@ -149,7 +149,7 @@ test: compile
149149
npm run test --workspace packages/serviceSearchClient
150150
npm run test --workspace packages/distanceSelling
151151
npm run test --workspace packages/common/utilities
152-
npm run test --workspace packages/common/tests
152+
npm run test --workspace packages/common/testing
153153

154154
clean:
155155
rm -rf packages/capabilityStatement/coverage
@@ -159,7 +159,7 @@ clean:
159159
rm -rf packages/serviceSearchClient/coverage
160160
rm -rf packages/distanceSelling/coverage
161161
rm -rf packages/statusLambda/coverage
162-
rm -rf packages/common/tests/coverage
162+
rm -rf packages/common/testing/coverage
163163
rm -rf packages/capabilityStatement/lib
164164
rm -rf packages/getMyPrescriptions/lib
165165
rm -rf packages/enrichPrescriptions/lib
@@ -169,7 +169,7 @@ clean:
169169
rm -rf packages/statusLambda/lib
170170
rm -rf packages/getSecretLayer/lib
171171
rm -rf packages/common/utilities/lib
172-
rm -rf packages/common/tests/lib
172+
rm -rf packages/common/testing/lib
173173
rm -rf .aws-sam
174174

175175
deep-clean: clean

jest.default.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ const jestConfig: JestConfigWithTsJest = {
1111
moduleFileExtensions: ["js", "json", "ts", "d.ts"],
1212
moduleNameMapper: {
1313
"^(\\.{1,2}/.*)\\.js$": "$1",
14-
"^@common/testing$": "<rootDir>/../../packages/common/tests/lib/index.js",
15-
"^@common/testing/(.*)$": "<rootDir>/../../packages/common/tests/lib/$1.js",
14+
"^@common/testing$": "<rootDir>/../../packages/common/testing/lib/index.js",
15+
"^@common/testing/(.*)$": "<rootDir>/../../packages/common/testing/lib/$1.js",
1616
"^@common/utilities$": "<rootDir>/../../packages/common/utilities/lib/index.js",
1717
"^@common/utilities/(.*)$": "<rootDir>/../../packages/common/utilities/lib/$1.js"
1818
},

package-lock.json

Lines changed: 31 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"packages/statusLambda",
2222
"packages/serviceSearchClient",
2323
"packages/common/utilities",
24-
"packages/common/tests",
24+
"packages/common/testing",
2525
"packages/distanceSelling"
2626
],
2727
"devDependencies": {

packages/capabilityStatement/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
"@nhs/fhir-middy-error-handler": "^2.1.53"
2222
},
2323
"devDependencies": {
24-
"@common/tests": "^1.0.0"
24+
"@common/testing": "^1.0.0"
2525
}
2626
}

packages/capabilityStatement/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"references": [
88
{ "path": "../common/utilities" },
9-
{ "path": "../common/tests" }
9+
{ "path": "../common/testing" }
1010
],
1111
"include": ["src/**/*", "tests/**/*", "examples/CapabilityStatement/apim-medicines-prescriptionsforpatients.json"],
1212
"exclude": ["node_modules"]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"main": "lib/index.js",
88
"type": "module",
99
"scripts": {
10-
"unit": "echo 'No tests in common/tests package - it provides test utilities only'",
10+
"unit": "echo 'No tests in common/testing package - it provides test utilities only'",
1111
"lint": "eslint --max-warnings 0 --fix --config ../../../eslint.config.mjs .",
1212
"compile": "tsc",
1313
"test": "npm run compile && npm run unit",
File renamed without changes.

0 commit comments

Comments
 (0)