Skip to content

Commit 798f10c

Browse files
authored
STCLI-256 turn off StrictMode when running tests (#363)
`<StrictMode>` 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
1 parent 8bcddbf commit 798f10c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## 3.3.0 IN PROGRESS
44

55
* Prune STS headers, permitting local non-SSL access via proxy. Refs STCLI-248.
6+
* Turn off `<StrictMode>` when running tests. Refs STCLI-256.
67

78
## [3.2.0](https://github.com/folio-org/stripes-cli/tree/v3.2.0) (2024-10-09)
89
[Full Changelog](https://github.com/folio-org/stripes-cli/compare/v3.1.0...v3.2.0)

lib/platform/tenant-config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ const defaultConfig = {
1212
hasAllPerms: false,
1313
languages: ['en'],
1414
useSecureTokens: true,
15+
16+
// run tests in production-mode
17+
// <StrictMode> is intended for dev-only
18+
disableStrictMode: true,
1519
},
1620
modules: {
1721
},

0 commit comments

Comments
 (0)