mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-02-10 23:39:31 -05:00
* chore: rename folders * chore: add search tests * chore: remove old files * Update pnpm-workspace.yaml * chore: fix ui * Update e2e-ci.yml * chore: renovate deps * fix build * chore: add tests
13 lines
336 B
TypeScript
13 lines
336 B
TypeScript
import * as fs from 'fs-extra';
|
|
|
|
export function expectFileToExist(fileName: string) {
|
|
return new Promise((resolve, reject) => {
|
|
fs.exists(fileName, (exist) => {
|
|
if (exist) {
|
|
resolve(exist);
|
|
} else {
|
|
reject(new Error(`File ${fileName} was expected to exist but not found...`));
|
|
}
|
|
});
|
|
});
|
|
}
|