Check app-store types on CI (#7190)

* Check app-store types on CI

* Fix ESLINt error
This commit is contained in:
Hariom Balhara 2023-03-03 00:28:31 +05:30 committed by GitHub
parent 841346c5f2
commit e12b21a73c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 6 deletions

View File

@ -13,3 +13,5 @@ jest.mock("@calcom/lib/crypto", () => ({
"userApiKey": "test"
}`,
}));
export {};

View File

@ -244,13 +244,13 @@ test.describe("Routing Forms", () => {
const thirdResponseCells = csvRows[3].split(",");
expect(firstResponseCells.slice(0, -1).join(",")).toEqual("event-routing,");
expect(new Date(firstResponseCells.at(-1)).getDay()).toEqual(new Date().getDay());
expect(new Date(firstResponseCells.at(-1) as string).getDay()).toEqual(new Date().getDay());
expect(secondResponseCells.slice(0, -1).join(",")).toEqual("external-redirect,");
expect(new Date(secondResponseCells.at(-1)).getDay()).toEqual(new Date().getDay());
expect(new Date(secondResponseCells.at(-1) as string).getDay()).toEqual(new Date().getDay());
expect(thirdResponseCells.slice(0, -1).join(",")).toEqual("custom-page,");
expect(new Date(thirdResponseCells.at(-1)).getDay()).toEqual(new Date().getDay());
expect(new Date(thirdResponseCells.at(-1) as string).getDay()).toEqual(new Date().getDay());
});
test("Router URL should work", async ({ page, users }) => {

View File

@ -7,6 +7,7 @@
"components.ts"
],
"scripts": {
"type-check": "tsc --pretty --noEmit",
"lint": "eslint . --ext .ts,.js,.tsx,.jsx",
"lint:fix": "eslint . --ext .ts,.js,.tsx,.jsx --fix",
"lint:report": "eslint . --format json --output-file ../../lint-results/app-store.json"

View File

@ -2,3 +2,5 @@
// Can't use this file right now as I am not able to figure out how to keep getting tRPC typesafety with merge calls done on already created router
// Till that time import routers from each app directly to core.
// import { Router } from "@trpc/server/dist/declarations/src/router";
export {};

View File

@ -18,8 +18,6 @@
"../types/*.d.ts",
"../types/next-auth.d.ts",
"**/*.ts",
"**/*.tsx",
"../../apps/web/server/**/*.ts",
"../../apps/web/server/**/*.tsx"
"**/*.tsx"
]
}