Skip to content

Commit

Permalink
Add client-testing-helpers package
Browse files Browse the repository at this point in the history
Ref: #7
  • Loading branch information
projkov committed Sep 6, 2024
1 parent 4995462 commit d7a02eb
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 2 deletions.
11 changes: 11 additions & 0 deletions packages/client-testing-helpers/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "@beda.software/client-testing-helpers",
"version": "0.0.1",
"description": "",
"main": "dist/index.js",
"scripts": {
"prepare": "tsc"
},
"author": "",
"license": "MIT"
}
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getFHIRAction } from './helpers';
import { getFHIRAction } from '.';

describe('getFHIRAction', () => {
test.each([
Expand Down
21 changes: 21 additions & 0 deletions packages/client-testing-helpers/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"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
}
}
2 changes: 1 addition & 1 deletion src/utils/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { parseSearchRequest } from '@medplum/core';
import { Request, Response } from 'express';
import { CreateRequestDto } from 'src/modules/requests/request.dto';
import { Session } from 'src/modules/sessions/session.entity';
import { getFHIRAction } from './helpers';
import { getFHIRAction } from '@beda.software/client-testing-helpers';

export function createRequestObject(
id: string,
Expand Down

0 comments on commit d7a02eb

Please sign in to comment.