mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
8c10a3ec31
* chore: migrate config package to vitest * Update pnpm-lock.yaml * improve win32 test * Create moody-mugs-pay.md
22 lines
687 B
TypeScript
22 lines
687 B
TypeScript
import path from 'path';
|
|
import { describe, expect, test } from 'vitest';
|
|
|
|
import { fileExists, folderExists } from '../src/config-utils';
|
|
|
|
describe('config-utils', () => {
|
|
test('folderExists', () => {
|
|
expect(folderExists(path.join(__dirname, './partials/exist'))).toBeTruthy();
|
|
});
|
|
|
|
test('folderExists == false', () => {
|
|
expect(folderExists(path.join(__dirname, './partials/NOT_exist'))).toBeFalsy();
|
|
});
|
|
|
|
test('fileExists', () => {
|
|
expect(fileExists(path.join(__dirname, './partials/exist/README.md'))).toBeTruthy();
|
|
});
|
|
|
|
test('fileExists == false', () => {
|
|
expect(fileExists(path.join(__dirname, './partials/exist/NOT_EXIST.md'))).toBeFalsy();
|
|
});
|
|
});
|