From 02be4cad27e2cc99a1b43a7ef5f35e43ebfb478b Mon Sep 17 00:00:00 2001 From: Dmitrii Maganov Date: Mon, 11 Feb 2019 04:29:32 +0300 Subject: [PATCH] feat: do concat in mutation mode (#461) --- src/mixed.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mixed.js b/src/mixed.js index 2e4824aae..f72b49f71 100644 --- a/src/mixed.js +++ b/src/mixed.js @@ -123,8 +123,10 @@ const proto = (SchemaType.prototype = { // manually add the new tests to ensure // the deduping logic is consistent - schema.tests.forEach(fn => { - next = next.test(fn.OPTIONS); + next.withMutation(next => { + schema.tests.forEach(fn => { + next.test(fn.OPTIONS); + }); }); return next;