Skip to content

Commit

Permalink
test(node): Make the naming of expected result files more consistent
Browse files Browse the repository at this point in the history
Consistently use `expected-output` as suffix, and align the name of the
expected result for skipping scope excludes with
`yarn2-project-with-lockfile-skip-excluded-scopes-expected-output.yml`.

Signed-off-by: Frank Viernau <frank_viernau@epam.com>
  • Loading branch information
fviernau committed Sep 24, 2024
1 parent 9198c5b commit 837d588
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ class NpmFunTest : WordSpec({

"exclude scopes if configured" {
val definitionFile = getAssetFile("projects/synthetic/npm/shrinkwrap/package.json")
val expectedResultFile = getAssetFile("projects/synthetic/npm-expected-output-scope-excludes.yml")
val expectedResultFile = getAssetFile(
"projects/synthetic/npm-shrinkwrap-skip-excluded-scopes-expected-output.yml"
)

val result = create("NPM", excludedScopes = setOf("devDependencies"))
.resolveSingleProject(definitionFile, resolveScopes = true)
Expand All @@ -84,7 +86,7 @@ class NpmFunTest : WordSpec({

"show an error if no lockfile is present" {
val definitionFile = getAssetFile("projects/synthetic/npm/no-lockfile/package.json")
val expectedResultFile = getAssetFile("projects/synthetic/npm-expected-output-no-lockfile.yml")
val expectedResultFile = getAssetFile("projects/synthetic/npm-no-lockfile-expected-output.yml")

val result = create("NPM").resolveSingleProject(definitionFile)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class YarnFunTest : WordSpec({
"yarn" should {
"resolve dependencies correctly" {
val definitionFile = getAssetFile("projects/synthetic/yarn/project-with-lockfile/package.json")
val expectedResultFile = getAssetFile("projects/synthetic/yarn-expected-output-project-with-lockfile.yml")
val expectedResultFile = getAssetFile("projects/synthetic/yarn-project-with-lockfile-expected-output.yml")

val result = create("Yarn").resolveSingleProject(definitionFile, resolveScopes = true)

Expand Down

0 comments on commit 837d588

Please sign in to comment.