diff --git a/test/reselect.spec.ts b/test/reselect.spec.ts index 60d893c93..63235cd46 100644 --- a/test/reselect.spec.ts +++ b/test/reselect.spec.ts @@ -3,10 +3,10 @@ import lodashMemoize from 'lodash/memoize' import microMemoize from 'micro-memoize' import { - unstable_autotrackMemoize as autotrackMemoize, createSelector, createSelectorCreator, defaultMemoize, + unstable_autotrackMemoize as autotrackMemoize, weakMapMemoize } from 'reselect' @@ -113,7 +113,7 @@ describe('Basic selector behavior', () => { const isCoverage = process.env.COVERAGE - describe('performance checks', () => { + describe.skipIf(isCoverage)('performance checks', () => { beforeAll(setEnvToProd) // don't run performance tests for coverage @@ -157,7 +157,7 @@ describe('Basic selector behavior', () => { expect(selector.recomputations()).toBe(1) // Expected a million calls to a selector with the same arguments to take less than 1 second - expect(totalTime).toBeLessThan(1000) + expect(totalTime).toBeLessThan(1500) } ) }) diff --git a/test/weakmapMemoize.spec.ts b/test/weakmapMemoize.spec.ts index 93953e341..51c396b3b 100644 --- a/test/weakmapMemoize.spec.ts +++ b/test/weakmapMemoize.spec.ts @@ -203,7 +203,12 @@ describe.skipIf(isCoverage)('weakmapMemoize performance tests', () => { (state: StateAB) => state.a, (state: StateAB) => state.b, (a, b) => a + b, - { devModeChecks: { identityFunctionCheck: 'never' } } + { + devModeChecks: { + identityFunctionCheck: 'never', + inputStabilityCheck: 'never' + } + } ) const start = performance.now() @@ -216,6 +221,6 @@ describe.skipIf(isCoverage)('weakmapMemoize performance tests', () => { expect(selector.recomputations()).toBe(1) // Expected a million calls to a selector with the same arguments to take less than 1 second - expect(totalTime).toBeLessThan(1000) + expect(totalTime).toBeLessThan(1500) }) })