From 990b7a66c766eeb301e39944c4f674b6b9d23966 Mon Sep 17 00:00:00 2001 From: Jonathon Herbert Date: Fri, 26 Apr 2024 09:51:07 +0100 Subject: [PATCH] Add a stub for /last-proofed-version in integration tests to prevent file not found errors --- fronts-client/integration/server/server.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fronts-client/integration/server/server.js b/fronts-client/integration/server/server.js index df325bdcc42..84c7fd88e91 100644 --- a/fronts-client/integration/server/server.js +++ b/fronts-client/integration/server/server.js @@ -195,6 +195,10 @@ module.exports = async () => return res.json([]); }); + app.get('*/last-proofed-version*', (req, res) => { + return res.json(null); + }); + // send the assets from dist app.get('*/:file', (req, res) => req.params[0].includes('bbc') // prevents error messages from External Snap Link fixture