Skip to content

Commit e524832

Browse files
mydeaclaude
andcommitted
test(remix-e2e): Assert all four remix channels in build-injection check
The build-injection guard only asserted the `requestHandler` and `callRouteLoader` publishers, but the transform config also injects `matchServerRoutes` and `callRouteAction`. A silent failure to inject either of those would have slipped past the guard, whose whole purpose is to prove build-time injection. Assert all four channels. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 4e71580 commit e524832

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

dev-packages/e2e-tests/test-applications/create-remix-app-v2/tests/build-injection.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,14 @@ test.describe('orchestrion build-time injection', () => {
3737
expect(serverBundle).toMatch(
3838
/tracingChannel(\$?\d)?\(["']orchestrion:@remix-run\/server-runtime:requestHandler["']\)/,
3939
);
40+
expect(serverBundle).toMatch(
41+
/tracingChannel(\$?\d)?\(["']orchestrion:@remix-run\/server-runtime:matchServerRoutes["']\)/,
42+
);
4043
expect(serverBundle).toMatch(
4144
/tracingChannel(\$?\d)?\(["']orchestrion:@remix-run\/server-runtime:callRouteLoader["']\)/,
4245
);
46+
expect(serverBundle).toMatch(
47+
/tracingChannel(\$?\d)?\(["']orchestrion:@remix-run\/server-runtime:callRouteAction["']\)/,
48+
);
4349
});
4450
});

0 commit comments

Comments
 (0)