test: add merge tests

This commit is contained in:
Igor Randjelovic
2020-11-22 16:52:33 +01:00
parent 2f5cd2bb85
commit 9053cb6688
7 changed files with 84 additions and 75 deletions

View File

@@ -24,7 +24,7 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
config.plugin('DefinePlugin').tap((args) => {
args[0] = merge(args[0], {
/** For various libraries in the React ecosystem. */
__TEST__: 'false',
__TEST__: false,
/**
* Primarily for React Fast Refresh plugin, but technically the allowHmrInProduction option could be used instead.
* Worth including anyway, as there are plenty of Node libraries that use this flag.