Add transport status events (#790)
* Transport status events Add symbol docs Emit transport status events Transport test suite * Review fixes * Remove core dependency * HTTP transport use AbortSignal, error handling in TransportNode * Improve stream handling * Update packages/transport-web-serial/src/transport.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Fix linting --------- Co-authored-by: philon- <philon-@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
Copilot
philon-
parent
449fb3ac36
commit
d7e32e9b03
@@ -1,23 +1,27 @@
|
||||
import path from "node:path";
|
||||
import process from "node:process";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import react from "@vitejs/plugin-react";
|
||||
import { enableMapSet } from "immer";
|
||||
import { defineProject } from "vitest/config";
|
||||
|
||||
enableMapSet();
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
const pkgRoot = __dirname;
|
||||
const srcDir = path.resolve(pkgRoot, "src");
|
||||
const publicDir = path.resolve(pkgRoot, "public");
|
||||
|
||||
export default defineProject({
|
||||
plugins: [react()],
|
||||
resolve: {
|
||||
alias: {
|
||||
"@app": path.resolve(process.cwd(), "./packages/web/src"),
|
||||
"@public": path.resolve(process.cwd(), "./packages/web/public"),
|
||||
"@core": path.resolve(process.cwd(), "./packages/web/src/core"),
|
||||
"@pages": path.resolve(process.cwd(), "./packages/web/src/pages"),
|
||||
"@components": path.resolve(
|
||||
process.cwd(),
|
||||
"./packages/web/src/components",
|
||||
),
|
||||
"@layouts": path.resolve(process.cwd(), "./packages/web/src/layouts"),
|
||||
"@app": srcDir,
|
||||
"@public": publicDir,
|
||||
"@core": path.resolve(srcDir, "core"),
|
||||
"@pages": path.resolve(srcDir, "pages"),
|
||||
"@components": path.resolve(srcDir, "components"),
|
||||
"@layouts": path.resolve(srcDir, "layouts"),
|
||||
},
|
||||
},
|
||||
test: {
|
||||
@@ -26,8 +30,7 @@ export default defineProject({
|
||||
mockReset: true,
|
||||
clearMocks: true,
|
||||
restoreMocks: true,
|
||||
root: path.resolve(process.cwd(), "./packages/web/src"),
|
||||
include: ["**/*.{test,spec}.{ts,tsx}"],
|
||||
setupFiles: ["./src/tests/setup.ts"],
|
||||
include: ["src/**/*.{test,spec}.{ts,tsx}"],
|
||||
setupFiles: [path.resolve(srcDir, "tests/setup.ts")],
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user