Update todoApp tests. Comment update.

This commit is contained in:
Mihovil Ilakovac 2024-10-28 15:42:08 +01:00
parent e231dda38c
commit f431153718
2 changed files with 8 additions and 9 deletions

View File

@ -17,7 +17,7 @@
"strictNullChecks": true,
// See https://github.com/wasp-lang/wasp/issues/2056 before activating this:
// "useUnknownInCatchVariables": true,
// The following 3 stict options will require more work:
// The following 2 stict options will require more work:
// "noImplicitAny": true,
// "strictPropertyInitialization": true,
// Overriding this because we want to use top-level await

View File

@ -1,4 +1,3 @@
// @ts-nocheck
import { AuthUser } from 'wasp/auth'
import { getMe } from 'wasp/client/auth'
import {
@ -32,17 +31,17 @@ import { Expect, Equal } from '../helpers'
import { QueryMetadata } from 'wasp/client/operations/rpc'
type TestCases = [
Expect<Equal<typeof taskToTaskSpecified, (args: Task) => Promise<Task>>>,
Expect<Equal<typeof taskToTaskSpecified, (args?: Task) => Promise<Task>>>,
Expect<
Equal<
typeof taskToTaskUnspecified,
(args: Task) => ReturnType<typeof taskToTaskUnspecifiedDefinition>
(args?: Task) => ReturnType<typeof taskToTaskUnspecifiedDefinition>
>
>,
Expect<
Equal<
typeof taskToTaskSatisfies,
(args: Task) => ReturnType<typeof taskToTaskSatisfiesDefinition>
(args?: Task) => ReturnType<typeof taskToTaskSatisfiesDefinition>
>
>,
Expect<
@ -50,12 +49,12 @@ type TestCases = [
>,
Expect<Equal<typeof voidToStringNoAuth, () => Promise<string>>>,
Expect<
Equal<typeof boolToStringNoAuth, (payload: boolean) => Promise<string>>
Equal<typeof boolToStringNoAuth, (payload?: boolean) => Promise<string>>
>,
Expect<Equal<typeof voidToStringAuth, () => Promise<string>>>,
Expect<Equal<typeof boolToStringAuth, (payload: boolean) => Promise<string>>>,
Expect<Equal<typeof boolToVoidNoAuth, (payload: boolean) => Promise<void>>>,
Expect<Equal<typeof boolToVoidAuth, (payload: boolean) => Promise<void>>>,
Expect<Equal<typeof boolToStringAuth, (payload?: boolean) => Promise<string>>>,
Expect<Equal<typeof boolToVoidNoAuth, (payload?: boolean) => Promise<void>>>,
Expect<Equal<typeof boolToVoidAuth, (payload?: boolean) => Promise<void>>>,
Expect<Equal<typeof getDate, QueryMetadata & (() => Promise<Date>)>>,
Expect<
Equal<