From 3b0d1a5481a86b028296dcf6cc5c0ae5f25b50ce Mon Sep 17 00:00:00 2001 From: Iuri de Silvio Date: Sat, 5 Feb 2022 15:13:32 -0300 Subject: [PATCH] fix(test): Set NODE_ENV before error handling tests. --- test/unit/specs/error-handling.spec.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/unit/specs/error-handling.spec.js b/test/unit/specs/error-handling.spec.js index 52d61e210..a9b8e11e8 100644 --- a/test/unit/specs/error-handling.spec.js +++ b/test/unit/specs/error-handling.spec.js @@ -5,6 +5,10 @@ import { NavigationFailureType } from '../../../src/util/errors' Vue.use(VueRouter) describe('error handling', () => { + beforeEach(function () { + process.env.NODE_ENV = 'development' + }) + it('onReady errors', done => { const router = new VueRouter() const err = new Error('foo')