Update loadDefaultOrg.spec.ts #196
push.yml
on: push
Matrix: Testing Application
Check Schema
38s
Deploying Application to Cloud VPS
0s
Create Empty Commit
0s
Annotations
4 errors and 1 warning
Check Schema
Failed to load 'schema.graphql' (ref: refs/pull/2126/merge)
|
Unhandled error:
tests/helpers/db.ts#L19
MongoNotConnectedError: Client must be connected before running operations
❯ executeOperationAsync node_modules/mongoose/node_modules/mongodb/src/operations/execute_operation.ts:95:13
❯ node_modules/mongoose/node_modules/mongodb/src/operations/execute_operation.ts:80:30
❯ maybeCallback node_modules/mongoose/node_modules/mongodb/src/utils.ts:345:19
❯ executeOperation node_modules/mongoose/node_modules/mongodb/src/operations/execute_operation.ts:80:23
❯ Collection.drop node_modules/mongoose/node_modules/mongodb/src/collection.ts:466:28
❯ Module.dropAllCollectionsFromDatabase tests/helpers/db.ts:19:22
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errmsg: 'Client must be connected before running operations', hasErrorLabel: 'Function<hasErrorLabel>', addErrorLabel: 'Function<addErrorLabel>', errorLabels: [] }
This error originated in "tests/utilities/loadDefaultOrg.spec.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "should load default data". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
Unhandled error:
tests/helpers/db.ts#L19
MongoNotConnectedError: Client must be connected before running operations
❯ executeOperationAsync node_modules/mongoose/node_modules/mongodb/src/operations/execute_operation.ts:95:13
❯ node_modules/mongoose/node_modules/mongodb/src/operations/execute_operation.ts:80:30
❯ maybeCallback node_modules/mongoose/node_modules/mongodb/src/utils.ts:345:19
❯ executeOperation node_modules/mongoose/node_modules/mongodb/src/operations/execute_operation.ts:80:23
❯ Collection.drop node_modules/mongoose/node_modules/mongodb/src/collection.ts:466:28
❯ Module.dropAllCollectionsFromDatabase tests/helpers/db.ts:19:22
❯ processTicksAndRejections node:internal/process/task_queues:95:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errmsg: 'Client must be connected before running operations', hasErrorLabel: 'Function<hasErrorLabel>', addErrorLabel: 'Function<addErrorLabel>', errorLabels: [] }
This error originated in "tests/utilities/loadDefaultOrg.spec.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "should load default data". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
Testing Application (20.x)
Process completed with exit code 1.
|
Check Schema
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: kamilkisiela/graphql-inspector@master. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|