From 798f10c44a7e0e72257706ff444626b8d9c32955 Mon Sep 17 00:00:00 2001 From: Zak Burke Date: Thu, 21 Nov 2024 13:17:00 -0500 Subject: [PATCH] STCLI-256 turn off StrictMode when running tests (#363) `` is intended to be a development-only setting so it should be disabled when running tests. e.g. a component that fetches data on mount with `accumulate: true` would see that data duplicated. Refs STCLI-256 --- CHANGELOG.md | 1 + lib/platform/tenant-config.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bf95071..102f04b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## 3.3.0 IN PROGRESS * Prune STS headers, permitting local non-SSL access via proxy. Refs STCLI-248. +* Turn off `` when running tests. Refs STCLI-256. ## [3.2.0](https://github.com/folio-org/stripes-cli/tree/v3.2.0) (2024-10-09) [Full Changelog](https://github.com/folio-org/stripes-cli/compare/v3.1.0...v3.2.0) diff --git a/lib/platform/tenant-config.js b/lib/platform/tenant-config.js index ee6f4f6..3901c7b 100644 --- a/lib/platform/tenant-config.js +++ b/lib/platform/tenant-config.js @@ -12,6 +12,10 @@ const defaultConfig = { hasAllPerms: false, languages: ['en'], useSecureTokens: true, + + // run tests in production-mode + // is intended for dev-only + disableStrictMode: true, }, modules: { },