Skip to content
Merged
Show file tree
Hide file tree
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
25 changes: 25 additions & 0 deletions convex/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"compilerOptions": {
"allowJs": true,
"allowImportingTsExtensions": true,
"allowSyntheticDefaultImports": true,
"exactOptionalPropertyTypes": true,
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"jsx": "react-jsx",
"lib": ["ES2024", "DOM", "DOM.Iterable"],
"module": "ESNext",
"moduleDetection": "force",
"moduleResolution": "Bundler",
"noEmit": true,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"noUncheckedIndexedAccess": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true,
"target": "ES2024"
},
"exclude": ["./_generated", "./**/*.test.ts", "./test.setup.ts"],
"include": ["./**/*.ts"]
}
33 changes: 33 additions & 0 deletions scripts/deploy-hosted-sync.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,39 @@ const outputWriter = (chunks: string[]): Pick<NodeJS.WriteStream, "write"> => ({
});

describe("verified hosted deployment", () => {
test("ships the Convex typecheck project required by the deploy gate", async () => {
const configuration = JSON.parse(await readFile(
join(import.meta.dir, "..", "convex", "tsconfig.json"),
"utf8",
)) as unknown;

expect(configuration).toEqual({
compilerOptions: {
allowJs: true,
allowImportingTsExtensions: true,
allowSyntheticDefaultImports: true,
exactOptionalPropertyTypes: true,
forceConsistentCasingInFileNames: true,
isolatedModules: true,
jsx: "react-jsx",
lib: ["ES2024", "DOM", "DOM.Iterable"],
module: "ESNext",
moduleDetection: "force",
moduleResolution: "Bundler",
noEmit: true,
noFallthroughCasesInSwitch: true,
noImplicitOverride: true,
noUncheckedIndexedAccess: true,
resolveJsonModule: true,
skipLibCheck: true,
strict: true,
target: "ES2024",
},
exclude: ["./_generated", "./**/*.test.ts", "./test.setup.ts"],
include: ["./**/*.ts"],
});
});

test("binds deploy to one exact generated target and clean source without inheriting stale selectors", async () => {
const repositoryRoot = await makeTemporaryDirectory("hra-hosted-source-");
const temporaryRoot = await makeTemporaryDirectory("hra-hosted-binding-");
Expand Down
Loading