Skip to content

Commit

Permalink
remove init from app in test mode
Browse files Browse the repository at this point in the history
  • Loading branch information
hassanelnajjar committed Sep 2, 2023
1 parent 30e064f commit 9dc383d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ import shopify from './shopify.js';
import GDPRWebhookHandlers from './gdpr.js';
import addSessionShopToReqParams from './middleware/addSessionShopToReqParameters.js';

init();
if (process.env.NODE_ENV !== 'test') {
init();
}

const errorMiddleware = (err, _req, res, _next) => {
if (err.name === 'ValidationError') {
Expand Down

0 comments on commit 9dc383d

Please sign in to comment.