You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@dhf-fullstack Why are you directly running the seed file in test mode?
It is expected / intended that NODE_ENV will only be test when running the tests via npm test, which uses mocha to run the app. Mocha registers after as a global variable.
Expected to be able to seed the test database without errors
server/db/db.js
after('close database connection')
ReferenceError: after not defined
export NODE_ENV=test
npm run seed
The text was updated successfully, but these errors were encountered: