Forked from
Eclipse Projects / xfsc / Organization Credential Manager / OCM-Engine
303 commits behind the upstream repository.
-
Konstantin Tsabolov authored
* Upgraded the dependencies to the latest versions * Switched output to ESM format * Switched NestJS and Jest to SWC to improve speed of building and testing * Refactored TSConfig to remove tsconfig-paths * Updated imports in all files to reflect the change in TSConfig * Changed the linting rules (removed AirBnB config) * Fixed Prettier installation (added ignore file) * Fixed typing errors (mainly usage of any's) * Fixed the non-working E2E test P.S. None of the mentioned makes sense alone, therefore a huge commit
Konstantin Tsabolov authored* Upgraded the dependencies to the latest versions * Switched output to ESM format * Switched NestJS and Jest to SWC to improve speed of building and testing * Refactored TSConfig to remove tsconfig-paths * Updated imports in all files to reflect the change in TSConfig * Changed the linting rules (removed AirBnB config) * Fixed Prettier installation (added ignore file) * Fixed typing errors (mainly usage of any's) * Fixed the non-working E2E test P.S. None of the mentioned makes sense alone, therefore a huge commit
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
logger.spec.ts 433 B
import fs from 'node:fs';
describe('Logger', () => {
it('should create a directory if not exists', async () => {
jest.spyOn(fs, 'existsSync').mockImplementation(() => false);
jest.spyOn(fs, 'mkdirSync').mockImplementation(() => 'mocked');
const logger = await import('./logger.js');
expect(logger).toBeDefined();
expect(fs.existsSync).toHaveBeenCalled();
expect(fs.mkdirSync).toHaveBeenCalled();
});
});