@stryker-mutator/util
Advanced tools
Comparing version 4.0.0-beta.8 to 4.0.0-beta.9
@@ -6,2 +6,13 @@ # Change Log | ||
# [4.0.0-beta.9](https://github.com/stryker-mutator/stryker/compare/v4.0.0-beta.8...v4.0.0-beta.9) (2020-09-30) | ||
### Bug Fixes | ||
* **mutate config:** don't warn about files not existing at the default mutate location ([#2509](https://github.com/stryker-mutator/stryker/issues/2509)) ([66c2444](https://github.com/stryker-mutator/stryker/commit/66c24447e28c4218d3e58b945b1bcc5891855097)), closes [#2455](https://github.com/stryker-mutator/stryker/issues/2455) | ||
# [4.0.0-beta.8](https://github.com/stryker-mutator/stryker/compare/v4.0.0-beta.7...v4.0.0-beta.8) (2020-09-22) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "@stryker-mutator/util", | ||
"version": "4.0.0-beta.8", | ||
"version": "4.0.0-beta.9", | ||
"description": "Contains utilities for Stryker, the mutation testing framework for JavaScript and friends", | ||
@@ -35,3 +35,3 @@ "main": "src/index.js", | ||
}, | ||
"gitHead": "4a82553cf18b7b44513df2c22c70a2cb47e7bf8c" | ||
"gitHead": "e6650529982e733f4e49eb6dca819935f2943f53" | ||
} |
@@ -14,3 +14,3 @@ "use strict"; | ||
if (overrideValue !== undefined) { | ||
if (defaultValue === undefined || typeof defaultValue !== 'object' || typeof overrideValue !== 'object') { | ||
if (defaultValue === undefined || typeof defaultValue !== 'object' || typeof overrideValue !== 'object' || Array.isArray(defaultValue)) { | ||
defaults[key] = overrideValue; | ||
@@ -17,0 +17,0 @@ } |
@@ -15,3 +15,3 @@ export type DeepPartial<T> = { | ||
if (overrideValue !== undefined) { | ||
if (defaultValue === undefined || typeof defaultValue !== 'object' || typeof overrideValue !== 'object') { | ||
if (defaultValue === undefined || typeof defaultValue !== 'object' || typeof overrideValue !== 'object' || Array.isArray(defaultValue)) { | ||
(defaults as any)[key] = overrideValue; | ||
@@ -18,0 +18,0 @@ } else { |
@@ -27,8 +27,8 @@ "use strict"; | ||
// Arrange | ||
const foo = { qux: ['1'] }; | ||
const baz = { qux: ['2'] }; | ||
const foo = { qux: ['1', '2'] }; | ||
const baz = { qux: ['3'] }; | ||
// Act | ||
deepMerge_1.deepMerge(foo, baz); | ||
// Assert | ||
const expected = { qux: ['2'] }; | ||
const expected = { qux: ['3'] }; | ||
chai_1.expect(foo).deep.eq(expected); | ||
@@ -35,0 +35,0 @@ }); |
@@ -40,4 +40,4 @@ import { expect } from 'chai'; | ||
// Arrange | ||
const foo: Foo = { qux: ['1'] }; | ||
const baz = { qux: ['2'] }; | ||
const foo: Foo = { qux: ['1', '2'] }; | ||
const baz = { qux: ['3'] }; | ||
@@ -48,3 +48,3 @@ // Act | ||
// Assert | ||
const expected: Foo = { qux: ['2'] }; | ||
const expected: Foo = { qux: ['3'] }; | ||
expect(foo).deep.eq(expected); | ||
@@ -51,0 +51,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
275109