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,
checkFilesExist,
cleanupProject,
detectPackageManager,
newProject,
packageInstall,
packageManagerLockFile,
readFile,
readJson,
runCLI,
runCommand,
runCommandUntil,
tmpProjPath,
uniq,
updateFile,
updateProjectConfig,
@ -52,7 +55,9 @@ describe('EsBuild Plugin', () => {
// main field should be set correctly in package.json
checkFilesExist(
`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/);