@@ -75,7 +75,7 @@ class Yarn2Test : WordSpec({
7575 " return the default executable name if Corepack is enabled based on the configuration option" {
7676 val workingDir = tempdir()
7777
78- val yarn = Yarn2Factory .create(corepackOverride = true)
78+ val yarn = Yarn2Factory .create(corepackEnabled = true)
7979 val command = yarn.yarn2Command.command(workingDir)
8080
8181 command shouldBe " yarn"
@@ -94,7 +94,7 @@ class Yarn2Test : WordSpec({
9494 val workingDir = tempdir()
9595 writePackageJson(workingDir, "
[email protected] ")
9696
97- checkExecutableFromYarnRc(workingDir, corepackOverride = false)
97+ checkExecutableFromYarnRc(workingDir, corepackEnabled = false)
9898 }
9999 }
100100})
@@ -103,7 +103,7 @@ class Yarn2Test : WordSpec({
103103 * Check whether an executable defined in a `.yarnrc.yml` file is used when invoked with the given [workingDir]
104104 * and [config]. This should be the case when Corepack is not enabled.
105105 */
106- private fun checkExecutableFromYarnRc (workingDir : File , corepackOverride : Boolean? = null) {
106+ private fun checkExecutableFromYarnRc (workingDir : File , corepackEnabled : Boolean? = null) {
107107 val executable = " yarn-wrapper.js"
108108
109109 workingDir.resolve(" .yarnrc.yml" ).writeText(" yarnPath: $executable " )
@@ -112,7 +112,7 @@ private fun checkExecutableFromYarnRc(workingDir: File, corepackOverride: Boolea
112112 writeText(" #!/usr/bin/env node\n console.log('yarn')" )
113113 }
114114
115- val yarn = Yarn2Factory .create(corepackOverride = corepackOverride )
115+ val yarn = Yarn2Factory .create(corepackEnabled = corepackEnabled )
116116 val command = yarn.yarn2Command.command(workingDir)
117117
118118 if (Os .isWindows) {
0 commit comments