p5.js-web-editor/server/jest.setup.js
Andrew Nicolaou 840e27b3fd Split client and server tests into separate Jest "projects"
- server tests now use the "node" jest environment, removing the
  mongoose warning
- both projects can use their own jest.setup.js file
2020-06-28 15:44:00 +02:00

4 lines
95 B
JavaScript

import '@babel/polyfill';
import mongoose from 'mongoose';
mongoose.Promise = global.Promise;