videogen/apps/mobile/vitest.features.config.ts
caelum0x d56639a594
Some checks are pending
build-images / api (push) Waiting to run
build-images / worker-gpu (push) Waiting to run
build-images / web (push) Waiting to run
codeql / Analyze (javascript-typescript) (push) Waiting to run
codeql / Analyze (python) (push) Waiting to run
perf / API hot-path micro-smoke (budgeted) (push) Waiting to run
perf / Desktop engine crates (release build check) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Waiting to run
vision2026-ci / API phase modules (ruff + pytest) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Waiting to run
vision2026-ci / Python SDK resource tests (push) Waiting to run
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Waiting to run
vision2026-ci / Alembic upgrade + drift check (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Waiting to run
Menivor — open source release (MIT), free to use and fork
Paid, hosted product at menivor.com, now retired as a company project.
Fresh squashed history of the cleaned working tree (secret-scanned,
no .env, no customer data, no outreach logs). Built on
MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
2026-12-04 02:10:26 +03:00

52 lines
1.8 KiB
TypeScript

import path from "node:path";
import { defineConfig } from "vitest/config";
/**
* Node-only tests for the pure feature modules behind the mobile one-flow
* create, Ad Studio, winner loop, per-reel pricing, and the studio /
* marketplace feature clients (clip market, film, speak, trends, ...). Mirrors
* vitest.product.config.ts: no Expo SDK needed, AsyncStorage is a no-op stub.
*/
export default defineConfig({
esbuild: {
tsconfigRaw: JSON.stringify({
compilerOptions: {
jsx: "react-jsx",
target: "ES2022",
},
}),
},
test: {
environment: "node",
include: [
"src/features/one-flow/__tests__/**/*.test.ts",
"src/features/ad-studio/__tests__/**/*.test.ts",
"src/features/winner-loop/__tests__/**/*.test.ts",
"src/shared/billing/__tests__/per-reel.test.ts",
"src/shared/media/__tests__/local-folder-migration.test.ts",
// Preset shelf client — the mobile port of the web one-tap preset flow.
"lib/__tests__/presets-shelf.test.ts",
// Studio / marketplace feature clients + pure logic (fetch stubbed in-test).
"src/features/clip-market/__tests__/**/*.test.ts",
"src/features/clipfarm-console/__tests__/**/*.test.ts",
"src/features/experiments/__tests__/**/*.test.ts",
"src/features/film-studio/__tests__/**/*.test.ts",
"src/features/media-gateway/__tests__/**/*.test.ts",
"src/features/reel-compose/__tests__/**/*.test.ts",
"src/features/speak-studio/__tests__/**/*.test.ts",
"src/features/trends-feed/__tests__/**/*.test.ts",
"src/features/jobs-library/__tests__/**/*.test.ts",
],
},
resolve: {
alias: {
"@react-native-async-storage/async-storage": path.resolve(
__dirname,
"web-stubs/async-storage.js",
),
"@": path.resolve(__dirname, "."),
},
},
});