Skip to content

Mongoose v5.6.0 breaks plugin and tests #32

@joelrorseth

Description

@joelrorseth

After updating to the latest mongoose v5.6.13, I noticed that a bunch of my tests were failing. Turns out they were all due to this plugin no longer functioning properly. It appears that the plugin is no longer working when inserted at the global or schema level.

After cloning the repo and running the tests, I discovered that the following are failing for mongoose ^5.6.0:

  1. Should fail validation with custom message on bad ID
  2. Should fail validation on bad ID with IdValidator instance
  3. Should fail validation if bad ID set after previously good ID value
  4. Should fail ID validation in an array of ID references

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions