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