-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dtfs2-6892): fix issue due to unit test and e2e tests running on…
… jsdom
- Loading branch information
1 parent
8552633
commit 5f3b106
Showing
12 changed files
with
24 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
libs/common/src/test-helpers/schemas/backend-test-cases/backend-test-cases.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
libs/common/src/test-helpers/schemas/backend-tests/with-tests-for-backend-testcase.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
libs/common/src/test-helpers/schemas/test-cases/base-test-case.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { BackendTestCase } from '../backend-test-cases/backend-test-cases'; | ||
import { TestCase } from './test-case'; | ||
|
||
export type BaseTestCase = TestCase | BackendTestCase; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
libs/common/src/test-helpers/schemas/types/test-case-with-path-parameter.type.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { TestCase } from '../test-cases/test-case'; | ||
import { BaseTestCase } from '../test-cases/base-test-case'; | ||
|
||
/** | ||
* Test cases with the path parameter, used to create the getTestObjectWithUpdatedParameter function | ||
*/ | ||
export type TestCaseWithPathParameter<T extends TestCase> = { | ||
export type TestCaseWithPathParameter<T extends BaseTestCase> = { | ||
parameterPath: string; | ||
} & T; |
4 changes: 2 additions & 2 deletions
4
libs/common/src/test-helpers/schemas/types/with-tests-for-test-case.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
export type WithTestsForTestCaseProps<Schema, TestCase> = { | ||
export type WithTestsForTestCaseProps<Schema, T> = { | ||
schema: Schema; | ||
testCase: TestCase; | ||
testCase: T; | ||
getTestObjectWithUpdatedParameter: (newValue: unknown) => unknown; | ||
getUpdatedParameterFromParsedTestObject: (parsedTestObject: unknown) => unknown; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters