-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
betaUser default #14
Comments
I am also having the same issue. And I see a very strange error in the console. |
It seems like passing the options object like this:
Solved the pool is draining issue for me. |
@chrisueda your solution also made the test |
for me the code @chrisueda provided only fix the pool is draining issue, but betauser and correct fields still both are failing... |
in |
@josephmwells your solution worked for me |
thanks @josephmwells it works now |
I have on the start user.js
betaUser: { type: Boolean, default: false },
like that but the test is not passing it? betaUser should default to false (11ms)
Here is the full schema
const mongoose = require('mongoose') const userSchema = new mongoose.Schema({ firstName: { type: String, required: true }, lastName: { type: String, required: true }, email: { type: String, required: true, unique: true }, betaUser: { type: Boolean, default: false }, birthDate: Date, address: { other: Boolean, street: String, houseNumber: Number, zip: Number, city: String, State: String }, pets: [{type: String}] }) module.exports = mongoose.model('user', userSchema)
The text was updated successfully, but these errors were encountered: