Git Komut Rehberi & Terminal Asistanı
Sıfırdan Yeni Bir Depo Başlatın:
Mevcut Bir Git Deposu veya Klasörü Gönderin:
Hataları Geri Alma, İptal & Temizlik:
Son commit'i geri al (yapılan değişiklikleri korur):
git reset --soft HEAD~1
Yapılan yerel değişiklikleri iptal et (çalışma ağacını temizler):
git restore .
Takip edilmeyen gereksiz dosyaları sil:
git clean -fd
Değişiklikleri geçici sakla ve geri getir (stash):
git stash git stash pop
Dal (Branch) ve Sürüm Etiketleri:
Yeni dal aç ve geçiş yap:
git checkout -b yeni-ozellik git push -u origin yeni-ozellik
Sürüm etiketi (tag) oluştur ve gönder:
git tag -a v1.0.0 -m "Sürüm 1.0.0" git push origin --tags
- DWG/DXF içe aktarma ve .skf yeniden açma düzeltmeleri - YakNet Bulut eşitlemede boş/eski kopya koruması ve yerel-only proje bildirimi - Panelden içe aktarma duyuruları ve erişilebilir Türkçe hata mesajları - AGPL-3.0 lisansı, README ve YakHub bağlantıları
49 lines
2.4 KiB
TypeScript
49 lines
2.4 KiB
TypeScript
import { describe, expect, it } from "vitest";
|
||
import { TUTORIAL_STEPS } from "@/lib/academyTutorialData";
|
||
|
||
describe("Interactive Tutorial (SnapCAD Akademi) Unit Tests", () => {
|
||
it("has exactly 10 comprehensive hands-on tutorial steps", () => {
|
||
expect(TUTORIAL_STEPS.length).toBe(10);
|
||
});
|
||
|
||
it("covers all essential architectural and modeling skills", () => {
|
||
const titles = TUTORIAL_STEPS.map((s) => s.title);
|
||
expect(titles.some((t) => t.includes("Gezinti") || t.includes("Kamera"))).toBe(true);
|
||
expect(titles.some((t) => t.includes("Duvar") || t.includes("Kütle"))).toBe(true);
|
||
expect(titles.some((t) => t.includes("İt / Çek") || t.includes("Push/Pull"))).toBe(true);
|
||
expect(titles.some((t) => t.includes("Akıllı Çarpışmasız") || t.includes("Çatı"))).toBe(true);
|
||
expect(titles.some((t) => t.includes("Boya Kovası") || t.includes("Dokular"))).toBe(true);
|
||
expect(titles.some((t) => t.includes("Bileşenler") || t.includes("Components"))).toBe(true);
|
||
expect(titles.some((t) => t.includes("Röntgen") || t.includes("X-Ray"))).toBe(true);
|
||
expect(titles.some((t) => t.includes("Yürüme") || t.includes("WASD"))).toBe(true);
|
||
expect(titles.some((t) => t.includes("Fizik") || t.includes("Deprem"))).toBe(true);
|
||
expect(titles.some((t) => t.includes("Masamda Gör") || t.includes("AR"))).toBe(true);
|
||
});
|
||
|
||
it("has action buttons on interactive steps", () => {
|
||
const stepsWithActions = TUTORIAL_STEPS.filter((s) => Boolean(s.actionButton));
|
||
expect(stepsWithActions.length).toBeGreaterThanOrEqual(8);
|
||
|
||
const actionTypes = stepsWithActions.map((s) => s.actionButton?.actionType);
|
||
expect(actionTypes).toContain("add_sample_wall");
|
||
expect(actionTypes).toContain("trigger_push_pull");
|
||
expect(actionTypes).toContain("add_sample_roof");
|
||
expect(actionTypes).toContain("open_paint_bucket");
|
||
expect(actionTypes).toContain("create_component_sample");
|
||
expect(actionTypes).toContain("toggle_xray");
|
||
expect(actionTypes).toContain("start_walk_mode");
|
||
expect(actionTypes).toContain("trigger_structural_test");
|
||
expect(actionTypes).toContain("open_ar_preview");
|
||
});
|
||
|
||
it("ensures step numbers and identifiers are sequential and unique", () => {
|
||
const ids = new Set<string>();
|
||
TUTORIAL_STEPS.forEach((step, index) => {
|
||
expect(step.stepNumber).toBe(index + 1);
|
||
expect(ids.has(step.id)).toBe(false);
|
||
ids.add(step.id);
|
||
expect(step.body.length).toBeGreaterThan(0);
|
||
});
|
||
});
|
||
});
|