This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * This monkey patch fixes an error reporting issue with sequelize errors in tests, | |
| * which was fixed in Sequelize v7, but hasn't been back-ported to Sequelize v6. | |
| * See https://github.com/sequelize/sequelize/issues/14807#issuecomment-1854398131 | |
| * | |
| * It should only be used in the test env, to make Sequelize error messages show up. | |
| * This can be removed when we upgrade to Sequelize 7, or when the issue is fixed in v6. | |
| */ | |
| const { Sequelize } = require('sequelize') |