feat: initial commit

This commit is contained in:
Carlos
2024-08-12 22:57:35 -04:00
commit 6f68ae8259
13140 changed files with 1104801 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
// tests/index.test.js
const { installDependencies } = require('../index');
const child_process = require('child_process');
jest.mock('child_process');
describe('installDependencies', () => {
it('should install dependencies without errors', () => {
const execSyncMock = jest.spyOn(child_process, 'execSync').mockImplementation(() => {});
installDependencies();
expect(execSyncMock).toHaveBeenCalledWith(expect.stringContaining('npm install'), expect.anything());
execSyncMock.mockRestore();
});
});