chore(misc): fix lockfile check in nightly (#18954)

This commit is contained in:
Jack Hsu 2023-08-31 16:54:43 -04:00 committed by GitHub
parent 5146a7c9fb
commit f6ad6998d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,13 +2,16 @@ import {
checkFilesDoNotExist, checkFilesDoNotExist,
checkFilesExist, checkFilesExist,
cleanupProject, cleanupProject,
detectPackageManager,
newProject, newProject,
packageInstall, packageInstall,
packageManagerLockFile,
readFile, readFile,
readJson, readJson,
runCLI, runCLI,
runCommand, runCommand,
runCommandUntil, runCommandUntil,
tmpProjPath,
uniq, uniq,
updateFile, updateFile,
updateProjectConfig, updateProjectConfig,
@ -52,7 +55,9 @@ describe('EsBuild Plugin', () => {
// main field should be set correctly in package.json // main field should be set correctly in package.json
checkFilesExist( checkFilesExist(
`dist/libs/${myPkg}/package.json`, `dist/libs/${myPkg}/package.json`,
`dist/libs/${myPkg}/pnpm-lock.yaml` `dist/libs/${myPkg}/${
packageManagerLockFile[detectPackageManager(tmpProjPath())]
}`
); );
expect(runCommand(`node dist/libs/${myPkg}`)).toMatch(/Hello/); expect(runCommand(`node dist/libs/${myPkg}`)).toMatch(/Hello/);