feat: refactoring project

This commit is contained in:
Carlos
2024-11-23 14:56:07 -05:00
parent f0c2a50c18
commit 1c6db5818d
2351 changed files with 39323 additions and 60326 deletions

13
bin/cli.test.js Normal file
View File

@@ -0,0 +1,13 @@
const { execSync } = require('child_process');
describe('React Crafter CLI', () => {
test('CLI runs and shows version', () => {
const output = execSync('node bin/cli.js --version').toString();
expect(output.trim()).toMatch(/\\d+\\.\\d+\\.\\d+/); // Matches a version format
});
test('CLI handles missing arguments', () => {
const output = execSync('node bin/cli.js').toString();
expect(output).toContain('React Crafter CLI');
});
});