Delete tests/smoke-test.js
Browse files- tests/smoke-test.js +0 -46
tests/smoke-test.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
| 1 |
-
// Smoke test for AgentIDE
|
| 2 |
-
const assert = require('assert');
|
| 3 |
-
|
| 4 |
-
console.log('🧪 Running AgentIDE Smoke Tests...\n');
|
| 5 |
-
|
| 6 |
-
// Test 1: Server should start
|
| 7 |
-
console.log('✓ Test 1: Server initialization');
|
| 8 |
-
|
| 9 |
-
// Test 2: Workspace should exist
|
| 10 |
-
const fs = require('fs');
|
| 11 |
-
const path = require('path');
|
| 12 |
-
const workspaceDir = path.join(__dirname, '../workspace');
|
| 13 |
-
|
| 14 |
-
try {
|
| 15 |
-
assert(fs.existsSync(workspaceDir), 'Workspace directory should exist');
|
| 16 |
-
console.log('✓ Test 2: Workspace directory exists');
|
| 17 |
-
} catch (e) {
|
| 18 |
-
console.log('✗ Test 2: Workspace directory missing');
|
| 19 |
-
}
|
| 20 |
-
|
| 21 |
-
// Test 3: Demo files should exist
|
| 22 |
-
const demoFiles = ['index.html', 'app.js', 'styles.css', 'package.json'];
|
| 23 |
-
let filesExist = true;
|
| 24 |
-
demoFiles.forEach(file => {
|
| 25 |
-
if (!fs.existsSync(path.join(workspaceDir, file))) {
|
| 26 |
-
filesExist = false;
|
| 27 |
-
}
|
| 28 |
-
});
|
| 29 |
-
if (filesExist) {
|
| 30 |
-
console.log('✓ Test 3: Demo files present');
|
| 31 |
-
} else {
|
| 32 |
-
console.log('✗ Test 3: Demo files missing');
|
| 33 |
-
}
|
| 34 |
-
|
| 35 |
-
// Test 4: Package.json should have correct structure
|
| 36 |
-
try {
|
| 37 |
-
const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, '../package.json'), 'utf8'));
|
| 38 |
-
assert(pkg.name === 'agentide', 'Package name should be agentide');
|
| 39 |
-
assert(pkg.dependencies !== undefined, 'Dependencies should exist');
|
| 40 |
-
console.log('✓ Test 4: Package.json structure valid');
|
| 41 |
-
} catch (e) {
|
| 42 |
-
console.log('✗ Test 4: Package.json invalid');
|
| 43 |
-
}
|
| 44 |
-
|
| 45 |
-
console.log('\n🎉 All basic tests passed!');
|
| 46 |
-
console.log('Run "npm start" to launch the IDE server.');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|