resolving failing tests #72
Annotations
10 errors
Run the tests:
tests/helpers/db.ts#L33
MongoNetworkError: connection establishment was cancelled
❯ connectionFailureError node_modules/mongoose/node_modules/mongodb/src/cmap/connect.ts:466:14
❯ CancellationToken.cancellationHandler node_modules/mongoose/node_modules/mongodb/src/cmap/connect.ts:367:42
❯ Object.onceWrapper node:events:631:28
❯ CancellationToken.emit node:events:529:35
❯ ConnectionPool.close node_modules/mongoose/node_modules/mongodb/src/cmap/connection_pool.ts:512:30
❯ Server.destroy node_modules/mongoose/node_modules/mongodb/src/sdam/server.ts:249:15
❯ destroyServer node_modules/mongoose/node_modules/mongodb/src/sdam/topology.ts:774:10
❯ Topology.close node_modules/mongoose/node_modules/mongodb/src/sdam/topology.ts:505:7
❯ MongoClient.close node_modules/mongoose/node_modules/mongodb/src/mongo_client.ts:617:14
❯ processTicksAndRejections node:internal/process/task_queues:95:5
❯ NativeConnection.doClose node_modules/mongoose/lib/drivers/node-mongodb-native/connection.js:190:3
❯ NativeConnection._close node_modules/mongoose/lib/connection.js:966:7
❯ Module.disconnect tests/helpers/db.ts:33:3
❯ tests/resolvers/Mutation/removeSampleOrganization.spec.ts:68:3
❯ callSuiteHook node_modules/@vitest/runner/dist/index.js:896:22
❯ runSuite node_modules/@vitest/runner/dist/index.js:1153:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { connectionGeneration: +0, errmsg: 'connection establishment was cancelled', hasErrorLabel: 'Function<hasErrorLabel>', addErrorLabel: 'Function<addErrorLabel>', errorLabels: [ 'ResetPool' ] }
This error originated in "tests/resolvers/Mutation/removeSampleOrganization.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 "tests/resolvers/Mutation/removeSampleOrganization.spec.ts". 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.
|
Run the tests:
tests/helpers/db.ts#L33
MongoNetworkError: connection establishment was cancelled
❯ connectionFailureError node_modules/mongoose/node_modules/mongodb/src/cmap/connect.ts:466:14
❯ CancellationToken.cancellationHandler node_modules/mongoose/node_modules/mongodb/src/cmap/connect.ts:367:42
❯ Object.onceWrapper node:events:631:28
❯ CancellationToken.emit node:events:529:35
❯ ConnectionPool.close node_modules/mongoose/node_modules/mongodb/src/cmap/connection_pool.ts:512:30
❯ Server.destroy node_modules/mongoose/node_modules/mongodb/src/sdam/server.ts:249:15
❯ destroyServer node_modules/mongoose/node_modules/mongodb/src/sdam/topology.ts:774:10
❯ Topology.close node_modules/mongoose/node_modules/mongodb/src/sdam/topology.ts:505:7
❯ MongoClient.close node_modules/mongoose/node_modules/mongodb/src/mongo_client.ts:617:14
❯ processTicksAndRejections node:internal/process/task_queues:95:5
❯ NativeConnection.doClose node_modules/mongoose/lib/drivers/node-mongodb-native/connection.js:190:3
❯ NativeConnection._close node_modules/mongoose/lib/connection.js:966:7
❯ Module.disconnect tests/helpers/db.ts:33:3
❯ tests/resolvers/Mutation/removeSampleOrganization.spec.ts:68:3
❯ callSuiteHook node_modules/@vitest/runner/dist/index.js:896:22
❯ runSuite node_modules/@vitest/runner/dist/index.js:1153:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { connectionGeneration: +0, errmsg: 'connection establishment was cancelled', hasErrorLabel: 'Function<hasErrorLabel>', addErrorLabel: 'Function<addErrorLabel>', errorLabels: [ 'ResetPool' ] }
This error originated in "tests/resolvers/Mutation/removeSampleOrganization.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 "tests/resolvers/Mutation/removeSampleOrganization.spec.ts". 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.
|
Run the tests:
src/utilities/hashEmail.ts#L27
Error: Missing HASH_PEPPER environment variable required for secure email hashing
❯ Module.hashEmail src/utilities/hashEmail.ts:27:11
❯ createTestUser tests/helpers/userAndOrg.ts:23:23
❯ Module.createTestUserAndOrganization tests/helpers/userAndOrg.ts:107:26
❯ tests/utilities/adminCheck.spec.ts:28:28
|
Run the tests:
src/utilities/hashEmail.ts#L27
Error: Missing HASH_PEPPER environment variable required for secure email hashing
❯ Module.hashEmail src/utilities/hashEmail.ts:27:11
❯ createTestUser tests/helpers/user.ts:13:23
❯ Module.createTestUserFunc tests/helpers/user.ts:38:26
❯ tests/utilities/auth.spec.ts:30:16
|
Run the tests:
src/utilities/hashEmail.ts#L27
Error: Missing HASH_PEPPER environment variable required for secure email hashing
❯ Module.hashEmail src/utilities/hashEmail.ts:27:11
❯ createTestUser tests/helpers/userAndOrg.ts:23:23
❯ Module.createTestUserAndOrganization tests/helpers/userAndOrg.ts:107:26
❯ Module.createVolunteerAndActions tests/helpers/volunteers.ts:120:46
❯ tests/utilities/checks.spec.ts:64:11
|
Run the tests:
src/utilities/hashEmail.ts#L27
Error: Missing HASH_PEPPER environment variable required for secure email hashing
❯ Module.hashEmail src/utilities/hashEmail.ts:27:11
❯ Module.generateUserData src/utilities/createSampleOrganizationUtil.ts:48:23
❯ tests/utilities/createSampleOrganizationUtil.spec.ts:28:28
|
Run the tests:
src/utilities/hashEmail.ts#L27
Error: Missing HASH_PEPPER environment variable required for secure email hashing
❯ Module.hashEmail src/utilities/hashEmail.ts:27:11
❯ Module.generateUserData src/utilities/createSampleOrganizationUtil.ts:48:23
❯ tests/utilities/createSampleOrganizationUtil.spec.ts:49:28
|
Run the tests:
src/utilities/hashEmail.ts#L27
Error: Missing HASH_PEPPER environment variable required for secure email hashing
❯ Module.hashEmail src/utilities/hashEmail.ts:27:11
❯ Module.generateUserData src/utilities/createSampleOrganizationUtil.ts:48:23
❯ tests/utilities/createSampleOrganizationUtil.spec.ts:70:13
|
Run the tests:
src/utilities/hashEmail.ts#L27
Error: Missing HASH_PEPPER environment variable required for secure email hashing
❯ Module.hashEmail src/utilities/hashEmail.ts:27:11
❯ Module.generateUserData src/utilities/createSampleOrganizationUtil.ts:48:23
❯ tests/utilities/createSampleOrganizationUtil.spec.ts:98:13
|
Run the tests:
src/utilities/hashEmail.ts#L27
Error: Missing HASH_PEPPER environment variable required for secure email hashing
❯ Module.hashEmail src/utilities/hashEmail.ts:27:11
❯ Module.generateUserData src/utilities/createSampleOrganizationUtil.ts:48:23
❯ tests/utilities/createSampleOrganizationUtil.spec.ts:126:15
|
Loading