feat: prevent duplicate routes when generating manifest (#1410)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { startFreshServerExpectErrors } from "./test_utils.ts";
|
||||
import { dirname, join } from "$std/path/mod.ts";
|
||||
import { assertStringIncludes } from "./deps.ts";
|
||||
|
||||
const dir = dirname(import.meta.url);
|
||||
|
||||
Deno.test({
|
||||
name: "route-conflicts",
|
||||
async fn() {
|
||||
const errorMessage = await startFreshServerExpectErrors({
|
||||
args: ["run", "-A", join(dir, "./fixture_route_analysis/dev.ts")],
|
||||
});
|
||||
assertStringIncludes(
|
||||
errorMessage,
|
||||
"Error: Route conflict detected. Multiple files have the same name",
|
||||
);
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user