Skip to content

Commit ef3f40b

Browse files
fix(overmind): make sure mocking does not get HMR cached
1 parent 534c5f4 commit ef3f40b

File tree

1 file changed

+1
-2
lines changed
  • packages/node_modules/overmind/src

1 file changed

+1
-2
lines changed

packages/node_modules/overmind/src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export class Overmind<Config extends Configuration> implements Configuration {
137137
constructor(configuration: Config, options: Options = {}) {
138138
const name = options.name || 'MyConfig'
139139

140-
if (IS_DEVELOPMENT) {
140+
if (IS_DEVELOPMENT && !options.testMode) {
141141
if (hotReloadingCache[name]) {
142142
return hotReloadingCache[name]
143143
} else {
@@ -377,7 +377,6 @@ export class Overmind<Config extends Configuration> implements Configuration {
377377
: undefined
378378
)
379379
})
380-
381380
} else {
382381
const execution = {
383382
...this.createExecution(name, action),

0 commit comments

Comments
 (0)