-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2b206ac
commit 9b8787e
Showing
9 changed files
with
26 additions
and
26 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
6 changes: 3 additions & 3 deletions
6
packages/configuration/test/server/fixtures/validation.fixture.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,12 +1,12 @@ | ||
|
||
import { ValidationResult } from "@jitar/validation"; | ||
|
||
const VALIDATION_RESULT = | ||
const VALIDATION_RESULT: ValidationResult = | ||
{ | ||
valid: false, | ||
errors: [ | ||
"Field 'url' is required", | ||
], | ||
} as ValidationResult; | ||
] | ||
} as const; | ||
|
||
export { VALIDATION_RESULT }; |
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
20 changes: 10 additions & 10 deletions
20
packages/configuration/test/utils/fixtures/configuration.fixture.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,35 +1,35 @@ | ||
|
||
const resultConfiguration = | ||
const resultConfiguration: Record<string, string | null> = | ||
{ | ||
source: null, | ||
target: './jitar' | ||
} as const; | ||
|
||
const envConfiguration = | ||
const envConfiguration: Record<string, string | null> = | ||
{ | ||
source: '${SOURCE_PATH_ENV_UTIL}', | ||
target: '${TARGET_PATH_ENV_UTIL}' | ||
} as const; | ||
|
||
const envResultConfiguration = | ||
const envResultConfiguration: Record<string, string | null> = | ||
{ | ||
source: 'null', | ||
target: './jitar' | ||
} as const; | ||
|
||
const defaultConfiguration = {} as const; | ||
const emptyConfiguration: Record<string, string | null> = {} as const; | ||
|
||
const envVariables = | ||
const envVariables: Record<string, string | null> = | ||
{ | ||
TARGET_PATH_ENV_UTIL_KEY: 'TARGET_PATH_ENV_UTIL', | ||
TARGET_PATH_ENV_UTIL_VALUE: './jitar' | ||
} as const; | ||
|
||
export const CONFIGURATIONS: Record<string, any> = | ||
{ | ||
result: resultConfiguration, | ||
env: envConfiguration, | ||
envResult: envResultConfiguration, | ||
default: defaultConfiguration, | ||
envVariables | ||
EMPTY: emptyConfiguration, | ||
RESULT: resultConfiguration, | ||
ENV: envConfiguration, | ||
ENV_RESULT: envResultConfiguration, | ||
ENV_VARIABLES: envVariables | ||
} as const; |
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