-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests - Environment Targets #69
base: main
Are you sure you want to change the base?
Tests - Environment Targets #69
Conversation
…tests-environment-targets
…it verdaccioTargets into 3 tests
I have paid attention to everything mentioned in the cache PR: Avoid unnecessary describe block nesting. |
const ENVIRONMENTS_DIRECTORY = '/environments'; | ||
const TARGET_NAMES = ['e2e']; | ||
const TAGS = ['env:production']; | ||
const TARGETS: { [targetName: string]: TargetConfiguration } = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the cons is only used here in the definition block to define another const we can inline the value.
In this case we could inline TARGETS
directly into PROJECT_CONFIG
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have deleted every const that was used once #69 (comment), but TARGETS are used 7 times (in the methods), so i decided to keep them
projects/nx-verdaccio/src/plugin/targets/environment.targets.unit-test.ts
Outdated
Show resolved
Hide resolved
projects/nx-verdaccio/src/plugin/targets/environment.targets.unit-test.ts
Outdated
Show resolved
Hide resolved
projects/nx-verdaccio/src/plugin/targets/environment.targets.unit-test.ts
Outdated
Show resolved
Hide resolved
projects/nx-verdaccio/src/plugin/targets/environment.targets.unit-test.ts
Show resolved
Hide resolved
projects/nx-verdaccio/src/plugin/targets/environment.targets.unit-test.ts
Outdated
Show resolved
Hide resolved
projects/nx-verdaccio/src/plugin/targets/environment.targets.unit-test.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for your PR and increasing test code coverage. I left some comments to improve the naming and structure.
Things done after review
|
No description provided.