fix: add @fusion-plugin-examples/cursor-runtime vitest aliases
runtime-provider-probes.ts imports probeCursorBinary from @fusion-plugin-examples/cursor-runtime, but neither the dashboard nor CLI vitest configs had source aliases for this package. Without the aliases, Vite tried to resolve the package's dist/ exports which don't exist in a source checkout, causing every dashboard test that transitively imports the runtime provider to fail with 'Failed to resolve entry for package'. This broke 48 dashboard test files in CI run 28561416741 after the cursor runtime plugin was added without updating the vitest configs.
This commit is contained in:
@@ -78,6 +78,18 @@ export default defineConfig({
|
||||
find: /^@fusion-plugin-examples\/paperclip-runtime$/,
|
||||
replacement: resolve(__dirname, "../../plugins/fusion-plugin-paperclip-runtime/src/index.ts"),
|
||||
},
|
||||
/*
|
||||
FNXC:PluginTests 2026-07-03-12:30:
|
||||
runtime-provider-probes.ts (transitively imported by dashboard) imports probeCursorBinary from @fusion-plugin-examples/cursor-runtime. Without these source aliases, Vite tries to resolve the package's dist/ exports which don't exist in a source checkout.
|
||||
*/
|
||||
{
|
||||
find: /^@fusion-plugin-examples\/cursor-runtime\/probe$/,
|
||||
replacement: resolve(__dirname, "../../plugins/fusion-plugin-cursor-runtime/src/probe.ts"),
|
||||
},
|
||||
{
|
||||
find: /^@fusion-plugin-examples\/cursor-runtime$/,
|
||||
replacement: resolve(__dirname, "../../plugins/fusion-plugin-cursor-runtime/src/index.ts"),
|
||||
},
|
||||
{ find: /^@fusion\/test-utils$/, replacement: resolve(__dirname, "../core/src/__test-utils__/workspace.ts") },
|
||||
],
|
||||
},
|
||||
|
||||
@@ -518,6 +518,18 @@ export default defineConfig({
|
||||
__dirname,
|
||||
"../../plugins/fusion-plugin-linear-import/src/index.ts",
|
||||
),
|
||||
/*
|
||||
FNXC:PluginTests 2026-07-03-12:30:
|
||||
runtime-provider-probes.ts imports probeCursorBinary from @fusion-plugin-examples/cursor-runtime. Without these source aliases, Vite tries to resolve the package's dist/ exports which don't exist in a source checkout, causing every dashboard test that transitively imports the runtime provider to fail with "Failed to resolve entry for package".
|
||||
*/
|
||||
"@fusion-plugin-examples/cursor-runtime/probe": resolve(
|
||||
__dirname,
|
||||
"../../plugins/fusion-plugin-cursor-runtime/src/probe.ts",
|
||||
),
|
||||
"@fusion-plugin-examples/cursor-runtime": resolve(
|
||||
__dirname,
|
||||
"../../plugins/fusion-plugin-cursor-runtime/src/index.ts",
|
||||
),
|
||||
},
|
||||
},
|
||||
test: {
|
||||
|
||||
Reference in New Issue
Block a user