build: add Vue and Pinia to the browser build and unit tests

This commit is contained in:
Sameh Khamis committed 2026-10-30 16:07:44 -07:00
1 parent 6d6df9d83b
commit c13c487dcf
8 files changed
+658 -20

No files matched your search

+1 -1
View File
@@ -42,7 +42,7 @@
"build/embed-framing.js",
"build/panel.js"
],
"external": ["vite-plugin-cesium"]
"external": ["vite-plugin-cesium", "@vitejs/plugin-vue"]
},
"live-providers": {
"runtime": "node",
+7 -1
View File
@@ -71,8 +71,14 @@ export function allocationTestArgs(file) {
return ['--expose-gc', '--test', '--test-concurrency=1', file];
}
/** Node flags every unit-test process receives. */
export const UNIT_TEST_NODE_FLAGS = Object.freeze([
// Single-file components compile on import.
'--import=./src/testSupport/registerVue.mjs',
]);
function runTests(args) {
const result = spawnSync(process.execPath, args, {
const result = spawnSync(process.execPath, [...UNIT_TEST_NODE_FLAGS, ...args], {
cwd: process.cwd(),
stdio: 'inherit',
env: process.env,