Skip to content

Commit

Permalink
STCLI-256 turn off StrictMode when running tests (#363)
Browse files Browse the repository at this point in the history
`<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
  • Loading branch information
zburke authored Nov 21, 2024
1 parent 8bcddbf commit 798f10c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 3.3.0 IN PROGRESS

* Prune STS headers, permitting local non-SSL access via proxy. Refs STCLI-248.
* Turn off `<StrictMode>` 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)
Expand Down
4 changes: 4 additions & 0 deletions lib/platform/tenant-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ const defaultConfig = {
hasAllPerms: false,
languages: ['en'],
useSecureTokens: true,

// run tests in production-mode
// <StrictMode> is intended for dev-only
disableStrictMode: true,
},
modules: {
},
Expand Down

0 comments on commit 798f10c

Please sign in to comment.