test: move stream harness into vitest

This commit is contained in:
Mohamed Boudra
2025-11-15 15:26:49 +01:00
parent a57315d78d
commit ddd10f0566
6 changed files with 88 additions and 31 deletions
+4 -2
View File
@@ -9,7 +9,8 @@
"ios": "expo run:ios",
"web": "expo start --web",
"lint": "expo lint",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"test": "vitest run"
},
"dependencies": {
"@boudra/expo-two-way-audio": "^0.1.3",
@@ -65,6 +66,7 @@
"eas-cli": "^16.24.1",
"eslint": "^9.25.0",
"eslint-config-expo": "~10.0.0",
"typescript": "~5.9.2"
"typescript": "~5.9.2",
"vitest": "^3.2.4"
}
}
File diff suppressed because it is too large Load Diff
+14
View File
@@ -0,0 +1,14 @@
import { defineConfig } from "vitest/config";
import path from "path";
export default defineConfig({
test: {
environment: "node",
},
resolve: {
alias: {
"@": path.resolve(__dirname, "src"),
"@server": path.resolve(__dirname, "../server/src"),
},
},
});