db:seed fails, tests wont run for development version linked to latest dev commit 8407c23c #1132
Replies: 3 comments 1 reply
-
@BenjaminOsei Do you have the issue if you run |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hi Kevin, even after yarn dev I couldn't run a test as expected. after having submitted yarn dev, I got the following logs: PS C:\Users\benja\source\repos\TheCypressRealWorldApp\cypress-realworld-app> yarn dev Though I nevertheless tried running the test from the testrunner via yarn cypress:open, I indeed still got the following page: Do you have any ideas on what I still could try? With kind regards, |
Beta Was this translation helpful? Give feedback.
-
Goodevening,
I'm having the same db connection issue as described under discussion #1032.
I too got below error after running 'npm run start:api' within my terminal:
yarn run v1.22.17
$ nyc --silent ts-node -P tsconfig.tsnode.json --files backend/app.ts
C:\Users\benja\source\repos\TheCypressRealWorldApp\cypress-realworld-app\node_modules\ts-node\src\index.ts:692
return new TSError(diagnosticText, diagnosticCodes);
^
TSError: ⨯ Unable to compile TypeScript:
backend/app.ts:79:11 - error TS2769: No overload matches this call.
The last overload gave the following error.
Argument of type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is not assignable to parameter of type 'PathParams'.
Type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is missing the following properties from type '(string | RegExp)[]': pop, push, concat, join, and 27 more.
79 app.use(checkAuth0Jwt);
~~~~~~~~~~~~~
node_modules/@types/express-serve-static-core/index.d.ts:61:5
61
(path: PathParams, ...handlers: Array<RequestHandlerParams<P, ResBody, ReqBody>>): T;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The last overload is declared here.
backend/app.ts:89:11 - error TS2769: No overload matches this call.
The last overload gave the following error.
Argument of type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is not assignable to parameter of type 'PathParams'.
Type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is not assignable to
type '(string | RegExp)[]'.
89 app.use(checkCognitoJwt);
~~~~~~~~~~~~~~~
node_modules/@types/express-serve-static-core/index.d.ts:61:5
61
(path: PathParams, ...handlers: Array<RequestHandlerParams<P, ResBody, ReqBody>>): T;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The last overload is declared here.
backend/app.ts:94:11 - error TS2769: No overload matches this call.
The last overload gave the following error.
Argument of type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is not assignable to parameter of type 'PathParams'.
Type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is not assignable to
type '(string | RegExp)[]'.
94 app.use(checkGoogleJwt);
~~~~~~~~~~~~~~
node_modules/@types/express-serve-static-core/index.d.ts:61:5
61
(path: PathParams, ...handlers: Array<RequestHandlerParams<P, ResBody, ReqBody>>): T;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The last overload is declared here.
And this also resulted in below result with the Cypress Test Runner:
Could someone help me out with this please?
Gr. Benjamin
Beta Was this translation helpful? Give feedback.
All reactions