Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions packages/create-cloudflare/e2e-tests/frameworks.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,14 @@ const verifyBuildCfTypesScript = async (
expect(outputFileContentPostLines).not.toContain("// Generated by Wrangler");

// the file still contains the env interface
expect(outputFileContentPostLines).toContain(
`interface ${envInterfaceName} {`,
const hasEnvInterface = outputFileContentPostLines.some(
(line) =>
// old type gen - some frameworkte templates pin older versions of wrangler
line === `interface ${envInterfaceName} {` ||
// new after importable env change
line === `interface ${envInterfaceName} extends Cloudflare.Env {}`,
);
expect(hasEnvInterface).toBe(true);
};

const verifyBuildScript = async (
Expand Down
Loading