chore(misc): fix lockfile check in nightly (#18954)
This commit is contained in:
parent
5146a7c9fb
commit
f6ad6998d4
@ -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/);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user