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
Organize test files
This commit is contained in:
+3
-3
@@ -8,9 +8,9 @@
|
|||||||
"export": "set STATIC_EXPORT=true&& next build apps/web",
|
"export": "set STATIC_EXPORT=true&& next build apps/web",
|
||||||
"start": "next start apps/web",
|
"start": "next start apps/web",
|
||||||
"typecheck": "tsc -p apps/web/tsconfig.json --noEmit",
|
"typecheck": "tsc -p apps/web/tsconfig.json --noEmit",
|
||||||
"test": "vitest run",
|
"test": "vitest run --config tests/vitest.config.ts",
|
||||||
"test:watch": "vitest",
|
"test:watch": "vitest --config tests/vitest.config.ts",
|
||||||
"perf": "vitest run --config vitest.perf.config.ts --reporter verbose",
|
"perf": "vitest run --config tests/vitest.perf.config.ts --reporter verbose",
|
||||||
"ci": "npm run typecheck && npm run test"
|
"ci": "npm run typecheck && npm run test"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ function printReport(rows: BenchRow[]) {
|
|||||||
describe("STL performance benchmark", () => {
|
describe("STL performance benchmark", () => {
|
||||||
it("measures import and local-first persistence costs", async () => {
|
it("measures import and local-first persistence costs", async () => {
|
||||||
const rows: BenchRow[] = [];
|
const rows: BenchRow[] = [];
|
||||||
const stlModule = await measure(rows, "startup", "load STL import module", 1, {}, () => import("../lib/stlImport"));
|
const stlModule = await measure(rows, "startup", "load STL import module", 1, {}, () => import("@/lib/stlImport"));
|
||||||
const importedShapeFromStl = stlModule.importedShapeFromStl as ImportedShapeFromStl;
|
const importedShapeFromStl = stlModule.importedShapeFromStl as ImportedShapeFromStl;
|
||||||
|
|
||||||
for (const workload of SYNTHETIC_WORKLOADS) {
|
for (const workload of SYNTHETIC_WORKLOADS) {
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import { describe, expect, it } from "vitest";
|
import { describe, expect, it } from "vitest";
|
||||||
import type { ShapeAsset } from "@/types/sketchforge";
|
import type { ShapeAsset } from "@/types/sketchforge";
|
||||||
import { makeShapeFromAsset, sceneShape, toolbarShapeAssets } from "./shapeCatalog";
|
import { makeShapeFromAsset, sceneShape, toolbarShapeAssets } from "@/lib/shapeCatalog";
|
||||||
|
|
||||||
describe("shape catalog", () => {
|
describe("shape catalog", () => {
|
||||||
it("does not expose removed decorative shapes in the toolbar catalog", () => {
|
it("does not expose removed decorative shapes in the toolbar catalog", () => {
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import { describe, expect, it } from "vitest";
|
import { describe, expect, it } from "vitest";
|
||||||
import type { WorkplaneWorkspaceSettings } from "@/types/sketchforge";
|
import type { WorkplaneWorkspaceSettings } from "@/types/sketchforge";
|
||||||
import { DEFAULT_SNAP_GRID, DEFAULT_WORKPLANE_WORKSPACE, normalizeSnapGrid, normalizeWorkspaceSettings, workplaneSettingsFingerprint } from "./workplaneSettings";
|
import { DEFAULT_SNAP_GRID, DEFAULT_WORKPLANE_WORKSPACE, normalizeSnapGrid, normalizeWorkspaceSettings, workplaneSettingsFingerprint } from "@/lib/workplaneSettings";
|
||||||
|
|
||||||
describe("workplane settings helpers", () => {
|
describe("workplane settings helpers", () => {
|
||||||
it("accepts known snap grid values and falls back for unknown values", () => {
|
it("accepts known snap grid values and falls back for unknown values", () => {
|
||||||
@@ -14,7 +14,7 @@ import {
|
|||||||
shapeDepth,
|
shapeDepth,
|
||||||
shapeWidth,
|
shapeWidth,
|
||||||
workplaneShapesEqual,
|
workplaneShapesEqual,
|
||||||
} from "./workplaneShapes";
|
} from "@/lib/workplaneShapes";
|
||||||
|
|
||||||
function shape(overrides: Partial<WorkplaneShape> = {}): WorkplaneShape {
|
function shape(overrides: Partial<WorkplaneShape> = {}): WorkplaneShape {
|
||||||
return {
|
return {
|
||||||
@@ -1,14 +1,17 @@
|
|||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { defineConfig } from "vitest/config";
|
import { defineConfig } from "vitest/config";
|
||||||
|
|
||||||
|
const rootDir = path.resolve(__dirname, "..");
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
root: rootDir,
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
"@": path.resolve(__dirname, "apps/web/src"),
|
"@": path.resolve(rootDir, "apps/web/src"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
test: {
|
test: {
|
||||||
environment: "node",
|
environment: "node",
|
||||||
include: ["apps/web/src/**/*.test.ts"],
|
include: ["tests/unit/**/*.test.ts"],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@@ -1,15 +1,18 @@
|
|||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { defineConfig } from "vitest/config";
|
import { defineConfig } from "vitest/config";
|
||||||
|
|
||||||
|
const rootDir = path.resolve(__dirname, "..");
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
root: rootDir,
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
"@": path.resolve(__dirname, "apps/web/src"),
|
"@": path.resolve(rootDir, "apps/web/src"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
test: {
|
test: {
|
||||||
environment: "node",
|
environment: "node",
|
||||||
include: ["apps/web/src/perf/**/*.perf.ts"],
|
include: ["tests/perf/**/*.perf.ts"],
|
||||||
testTimeout: 120000,
|
testTimeout: 120000,
|
||||||
hookTimeout: 120000,
|
hookTimeout: 120000,
|
||||||
},
|
},
|
||||||
Reference in New Issue
Block a user