Skip to content

Commit

Permalink
Use suites as packages
Browse files Browse the repository at this point in the history
Ref: #7
  • Loading branch information
projkov committed Sep 10, 2024
1 parent 59a24d7 commit ac67fe2
Show file tree
Hide file tree
Showing 10 changed files with 77 additions and 5 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"packages/client-testing-helpers",
"packages/client-testing-proxy-helpers",
"packages/fhir-validator",
"packages/app"
"packages/app",
"packages/client-testing-demo-tests-standard",
"packages/client-testing-demo-tests-db"
],
"scripts": {
"build": "nest build",
Expand Down
2 changes: 1 addition & 1 deletion packages/app/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "backend",
"name": "@beda.software/app",
"version": "0.0.1",
"description": "",
"author": "",
Expand Down
11 changes: 11 additions & 0 deletions packages/client-testing-demo-tests-db/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "@beda.software/client-testing-demo-tests-db",
"version": "0.0.1",
"description": "",
"main": "dist/index.js",
"scripts": {
"prepare": "tsc"
},
"author": "",
"license": "ISC"
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { Patient } from 'fhir/r4';
import {
getRequestsWithUnavailableComboSearchParams,
getRequestsWithUnavailableSearchParams,
} from '../../../utils/clientTestingHelpers';
import { Request } from '../../../modules/requests/request.entity';
} from '@beda.software/app/src//utils/clientTestingHelpers';
import { Request } from '@beda.software/app/src/modules/requests/request.entity';
import { isResourceValid } from '@beda.software/fhir-validator';

async function patientRequestCreateValidPatient(requests: Request[]): Promise<boolean> {
Expand Down Expand Up @@ -72,3 +72,4 @@ describe('Patients test', () => {
).toBe(true);
});
});

22 changes: 22 additions & 0 deletions packages/client-testing-demo-tests-db/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"compilerOptions": {
"module": "commonjs",
"declaration": true,
"removeComments": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"target": "ES2021",
"sourceMap": true,
"outDir": "./dist",
"baseUrl": "./",
"incremental": true,
"skipLibCheck": true,
"strictNullChecks": false,
"noImplicitAny": false,
"strictBindCallApply": false,
"forceConsistentCasingInFileNames": false,
"noFallthroughCasesInSwitch": false,
"noEmit": false
}
}
11 changes: 11 additions & 0 deletions packages/client-testing-demo-tests-standard/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "@beda.software/client-testing-demo-tests-standard",
"version": "0.0.1",
"description": "",
"main": "dist/index.js",
"scripts": {
"prepare": "tsc"
},
"author": "",
"license": "ISC"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Patient } from 'fhir/r4';
import { Request } from '../../../modules/requests/request.entity';
import { Request } from '@beda.software/app/src/modules/requests/request.entity';
import { isResourceValid } from '@beda.software/fhir-validator';

function patientRequestsOnlyAvailableInteractionsExists(requests: Request[]): boolean {
Expand Down Expand Up @@ -81,3 +81,4 @@ describe('Patients test (2nd version)', () => {
).toBe(true);
});
});

22 changes: 22 additions & 0 deletions packages/client-testing-demo-tests-standard/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"compilerOptions": {
"module": "commonjs",
"declaration": true,
"removeComments": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"target": "ES2021",
"sourceMap": true,
"outDir": "./dist",
"baseUrl": "./",
"incremental": true,
"skipLibCheck": true,
"strictNullChecks": false,
"noImplicitAny": false,
"strictBindCallApply": false,
"forceConsistentCasingInFileNames": false,
"noFallthroughCasesInSwitch": false,
"noEmit": false
}
}

0 comments on commit ac67fe2

Please sign in to comment.