From f206c53e760e37b2d1db6aa470842ac387560b71 Mon Sep 17 00:00:00 2001 From: Cue <1493221+cuebit@users.noreply.github.com> Date: Thu, 14 May 2020 00:37:22 +0100 Subject: [PATCH 1/2] refactor: remove node env flag --- src/store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store.js b/src/store.js index 474d02f25..549fd1a4f 100644 --- a/src/store.js +++ b/src/store.js @@ -10,7 +10,7 @@ export function createStore (options) { export class Store { constructor (options = {}) { - if (process.env.NODE_ENV !== 'production') { + if (__DEV__) { assert(typeof Promise !== 'undefined', `vuex requires a Promise polyfill in this browser.`) assert(this instanceof Store, `store must be called with the new operator.`) } From aface8dfde3b5a1c43c9801eedc43eaf01fbcd3a Mon Sep 17 00:00:00 2001 From: Cue <1493221+cuebit@users.noreply.github.com> Date: Thu, 14 May 2020 01:05:05 +0100 Subject: [PATCH 2/2] style: resolve formatting --- jest.config.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/jest.config.js b/jest.config.js index 345b52ed3..37ac72daf 100644 --- a/jest.config.js +++ b/jest.config.js @@ -9,11 +9,9 @@ module.exports = { }, testMatch: ['/test/unit/**/*.spec.js'], testPathIgnorePatterns: ['/node_modules/'], - setupFilesAfterEnv: [ - './test/setup.js' - ], - "transform": { - "^.+\\.js$": "/node_modules/babel-jest" + setupFilesAfterEnv: ['./test/setup.js'], + transform: { + '^.+\\.js$': '/node_modules/babel-jest' }, coverageDirectory: 'coverage', coverageReporters: ['json', 'lcov', 'text-summary', 'clover'],