17 KiB
@backstage/test-utils
1.1.2-next.2
Patch Changes
a70869e775: Updated dependencymswto^0.43.0.- Updated dependencies
- @backstage/core-app-api@1.0.4-next.1
- @backstage/core-plugin-api@1.0.4-next.0
- @backstage/plugin-permission-common@0.6.3-next.1
- @backstage/plugin-permission-react@0.4.3-next.1
1.1.2-next.1
Patch Changes
- Updated dependencies
- @backstage/theme@0.2.16-next.0
- @backstage/plugin-permission-common@0.6.3-next.0
- @backstage/plugin-permission-react@0.4.3-next.0
1.1.2-next.0
Patch Changes
- Updated dependencies
- @backstage/core-app-api@1.0.4-next.0
1.1.1
Patch Changes
8f7b1835df: Updated dependencymswto^0.41.0.- Updated dependencies
- @backstage/core-app-api@1.0.3
- @backstage/core-plugin-api@1.0.3
- @backstage/plugin-permission-common@0.6.2
- @backstage/plugin-permission-react@0.4.2
1.1.1-next.0
Patch Changes
8f7b1835df: Updated dependencymswto^0.41.0.- Updated dependencies
- @backstage/core-app-api@1.0.3-next.0
- @backstage/core-plugin-api@1.0.3-next.0
- @backstage/plugin-permission-common@0.6.2-next.0
- @backstage/plugin-permission-react@0.4.2-next.0
1.1.0
Minor Changes
1da8b248c2: Added the options parameter torenderWithEffects, which if forwarded to therenderfunction from@testling-library/react. Initially only thewrapperoption is supported.1da8b248c2: AddedcreateTestAppWrapper, which returns a component that can be used as thewrapperoption forrenderorrenderWithEffects.
Patch Changes
1da8b248c2: FixedrenderInTestAppso that it is able to re-render the result without removing the app wrapping.7a5ddfd595: Added missingRouteselement to wrap theRouteelements of the test app wrapping.7a5ddfd595: The internal elements created as part of themountedRoutesimplementation are now hidden during rendering.- Updated dependencies
- @backstage/core-plugin-api@1.0.2
- @backstage/config@1.0.1
- @backstage/core-app-api@1.0.2
- @backstage/plugin-permission-common@0.6.1
- @backstage/plugin-permission-react@0.4.1
1.1.0-next.2
Patch Changes
- Updated dependencies
- @backstage/config@1.0.1-next.0
- @backstage/core-app-api@1.0.2-next.1
- @backstage/core-plugin-api@1.0.2-next.1
- @backstage/plugin-permission-common@0.6.1-next.0
- @backstage/plugin-permission-react@0.4.1-next.1
1.1.0-next.1
Minor Changes
1da8b248c2: Added the options parameter torenderWithEffects, which if forwarded to therenderfunction from@testling-library/react. Initially only thewrapperoption is supported.1da8b248c2: AddedcreateTestAppWrapper, which returns a component that can be used as thewrapperoption forrenderorrenderWithEffects.
Patch Changes
1da8b248c2: FixedrenderInTestAppso that it is able to re-render the result without removing the app wrapping.- Updated dependencies
- @backstage/core-plugin-api@1.0.2-next.0
- @backstage/core-app-api@1.0.2-next.0
- @backstage/plugin-permission-react@0.4.1-next.0
1.0.2-next.0
Patch Changes
7a5ddfd595: Added missingRouteselement to wrap theRouteelements of the test app wrapping.7a5ddfd595: The internal elements created as part of themountedRoutesimplementation are now hidden during rendering.
1.0.1
Patch Changes
24254fd433: build(deps): bump@testing-library/user-eventfrom 13.5.0 to 14.0.0c98d271466: Use updated types from@backstage/plugin-permission-common230ad0826f: Bump to using@types/nodev16- Updated dependencies
- @backstage/plugin-permission-react@0.4.0
- @backstage/plugin-permission-common@0.6.0
- @backstage/core-app-api@1.0.1
- @backstage/core-plugin-api@1.0.1
1.0.1-next.2
Patch Changes
24254fd433: build(deps): bump@testing-library/user-eventfrom 13.5.0 to 14.0.0230ad0826f: Bump to using@types/nodev16- Updated dependencies
- @backstage/core-app-api@1.0.1-next.1
- @backstage/core-plugin-api@1.0.1-next.0
- @backstage/plugin-permission-common@0.6.0-next.1
- @backstage/plugin-permission-react@0.4.0-next.1
1.0.1-next.1
Patch Changes
c98d271466: Use updated types from@backstage/plugin-permission-common- Updated dependencies
- @backstage/plugin-permission-react@0.4.0-next.0
- @backstage/plugin-permission-common@0.6.0-next.0
1.0.1-next.0
Patch Changes
- Updated dependencies
- @backstage/core-app-api@1.0.1-next.0
1.0.0
Major Changes
b58c70c223: This package has been promoted to v1.0! To understand how this change affects the package, please check out our versioning policy.
Patch Changes
a422d7ce5e: chore(deps): bump@testing-library/reactfrom 11.2.6 to 12.1.3f24ef7864e: Minor typo fixes- Updated dependencies
- @backstage/core-app-api@1.0.0
- @backstage/core-plugin-api@1.0.0
- @backstage/plugin-permission-react@0.3.4
- @backstage/config@1.0.0
- @backstage/types@1.0.0
- @backstage/plugin-permission-common@0.5.3
0.3.0
Minor Changes
bb2bb36651: BREAKING: Removed the deprecatedgetmethod fromStorageAPIand its implementations, this method has been replaced by thesnapshotmethod. The return value from snapshot no longer includesnewValuewhich has been replaced byvalue. For getting notified when a value changes, use `observe# @backstage/test-utils.af5eaa87f4: BREAKING: Removed deprecatedauth0AuthApiRef,oauth2ApiRef,samlAuthApiRefandoidcAuthApiRefas these APIs are too generic to be useful. Instructions for how to migrate can be found at https://backstage.io/docs/api/deprecations#generic-auth-api-refs.
Patch Changes
- Updated dependencies
- @backstage/core-app-api@0.6.0
- @backstage/core-plugin-api@0.8.0
- @backstage/plugin-permission-common@0.5.2
- @backstage/plugin-permission-react@0.3.3
0.2.6
Patch Changes
- Updated dependencies
- @backstage/core-plugin-api@0.7.0
- @backstage/core-app-api@0.5.4
- @backstage/plugin-permission-react@0.3.2
0.2.5
Patch Changes
1ed305728b: Bumpnode-fetchto version 2.6.7 andcross-fetchto version 3.1.5c77c5c7eb6: Addedbackstage.roletopackage.json- Updated dependencies
- @backstage/core-app-api@0.5.3
- @backstage/core-plugin-api@0.6.1
- @backstage/plugin-permission-common@0.5.0
- @backstage/plugin-permission-react@0.3.1
- @backstage/config@0.1.14
- @backstage/theme@0.2.15
- @backstage/types@0.1.2
0.2.4
Patch Changes
- Updated dependencies
- @backstage/core-app-api@0.5.2
0.2.4-next.0
Patch Changes
- Updated dependencies
- @backstage/core-app-api@0.5.2-next.0
0.2.3
Patch Changes
c54c0d9d10: Add MockPermissionApi6bf7826258: Added aMockFetchApi- Updated dependencies
- @backstage/plugin-permission-react@0.3.0
- @backstage/plugin-permission-common@0.4.0
- @backstage/core-plugin-api@0.6.0
- @backstage/core-app-api@0.5.0
- @backstage/config@0.1.13
0.2.3-next.0
Patch Changes
- Updated dependencies
- @backstage/core-plugin-api@0.6.0-next.0
- @backstage/config@0.1.13-next.0
- @backstage/core-app-api@0.5.0-next.0
0.2.2
Patch Changes
2d3fd91e33: Add newMockConfigApias a more discoverable and leaner method for mocking configuration.- Updated dependencies
- @backstage/config@0.1.12
- @backstage/core-plugin-api@0.5.0
- @backstage/core-app-api@0.4.0
0.2.1
Patch Changes
c36b7794f7: JSON serialize and freeze values stored by theMockStorageApi.
0.2.0
Minor Changes
a195284c7b: UpdatedMockStorageApito reflect theStorageApichanges in@backstage/core-plugin-api.771b9c07fe: Removed deprecatedKeyboardclass which has been superseded by@testing-library/user-event#userEventf6722d2458: Removed deprecatedmswdefinition which was replaced by callingsetupRequestMockHandlersdirectly
Patch Changes
- Updated dependencies
- @backstage/core-app-api@0.3.0
- @backstage/core-plugin-api@0.4.0
0.1.24
Patch Changes
cd450844f6: Moved React dependencies topeerDependenciesand allow both React v16 and v17 to be used.dcd1a0c3f4: Minor improvement to the API reports, by not unpacking arguments directly- Updated dependencies
- @backstage/core-plugin-api@0.3.0
- @backstage/core-app-api@0.2.0
0.1.23
Patch Changes
-
000190de69: TheApiRegistryfrom@backstage/core-app-apiclass has been deprecated and will be removed in a future release. To replace it, we have introduced two new helpers that are exported from@backstage/test-utils, namelyTestApiProviderandTestApiRegistry.These two new helpers are more tailored for writing tests and development setups, as they allow for partial implementations of each of the APIs.
When migrating existing code it is typically best to prefer usage of
TestApiProviderwhen possible, so for example the following code:render( <ApiProvider apis={ApiRegistry.from([ [identityApiRef, mockIdentityApi as unknown as IdentityApi] ])} > {...} </ApiProvider> )Would be migrated to this:
render( <TestApiProvider apis={[[identityApiRef, mockIdentityApi]]}> {...} </TestApiProvider> )In cases where the
ApiProvideris used in a more standalone way, for example to reuse a set of APIs across multiple tests, theTestApiRegistrycan be used instead. Note that theTestApiRegistryonly has a single static factory method,.from(), and it is slightly different from the existing.from()method onApiRegistryin that it doesn't require the API pairs to be wrapped in an outer array.Usage that looks like this:
const apis = ApiRegistry.with( identityApiRef, mockIdentityApi as unknown as IdentityApi, ).with(configApiRef, new ConfigReader({}));OR like this:
const apis = ApiRegistry.from([ [identityApiRef, mockIdentityApi as unknown as IdentityApi], [configApiRef, new ConfigReader({})], ]);Would be migrated to this:
const apis = TestApiRegistry.from( [identityApiRef, mockIdentityApi], [configApiRef, new ConfigReader({})], );If your app is still using the
ApiRegistryto construct theapisforcreateApp, we recommend that you move over to use the new method of supplying API factories instead, usingcreateApiFactory. -
Updated dependencies
- @backstage/core-app-api@0.1.23
- @backstage/core-plugin-api@0.2.1
0.1.22
Patch Changes
0b1de52732: Migrated to using newErrorApiErrorandErrorApiErrorContextnames.2dd2a7b2cc: Migrated to usingcreateSpecializedApp.- Updated dependencies
- @backstage/core-plugin-api@0.2.0
- @backstage/core-app-api@0.1.21
0.1.21
Patch Changes
71fd5cd735: Update Keyboard deprecation with a link to the recommended successor- Updated dependencies
- @backstage/theme@0.2.13
- @backstage/core-plugin-api@0.1.13
- @backstage/core-app-api@0.1.20
0.1.20
Patch Changes
-
bb12aae352: Migrates all utility methods fromtest-utils-coreintotest-utilsand delete exports from the old package. This should have no impact since this package is considered internal and have no usages outside core packages.Notable changes are that the testing tool
msw.setupDefaultHandlers()have been deprecated in favour ofsetupRequestMockHandlers(). -
c5bb1df55d: Bumpmswtov0.35.0to resolve CVE-2021-32796. -
10615525f3: Switch to use the json and observable types from@backstage/types -
Updated dependencies
- @backstage/theme@0.2.12
- @backstage/core-app-api@0.1.19
- @backstage/core-plugin-api@0.1.12
0.1.19
Patch Changes
54bbe25c34: Store the namespaced bucket storage for each instance that was created withMockStorage.create()instead of global variable.- Updated dependencies
- @backstage/core-app-api@0.1.17
- @backstage/theme@0.2.11
0.1.18
Patch Changes
e749a38e89: Added a mock implementation of theAnalyticsApi, which can be used to make assertions about captured analytics events.- Updated dependencies
- @backstage/core-plugin-api@0.1.10
- @backstage/core-app-api@0.1.16
- @backstage/test-utils-core@0.1.3
0.1.17
Patch Changes
56c773909: Switched@types/reactdependency to request*rather than a specific version.- Updated dependencies
- @backstage/core-app-api@0.1.8
- @backstage/core-plugin-api@0.1.6
- @backstage/test-utils-core@0.1.2
0.1.16
Patch Changes
9d40fcb1e: - Bumpingmaterial-ui/coreversion to at least4.12.2as they made some breaking changes in later versions which brokePaginationof theTable.- Switching out
material-tableto@material-table/corefor support for the later versions ofmaterial-ui/core - This causes a minor API change to
@backstage/core-componentsas the interface forTablere-exports thepropfrom the underlyingTablecomponents. onChangeRowsPerPagehas been renamed toonRowsPerPageChangeonChangePagehas been renamed toonPageChange- Migration guide is here: https://material-table-core.com/docs/breaking-changes
- Switching out
- Updated dependencies
- @backstage/core-app-api@0.1.6
- @backstage/core-plugin-api@0.1.4
- @backstage/theme@0.2.9
0.1.15
Patch Changes
45b5fc3a8: Updated the layout of catalog and API index pages to handle smaller screen sizes. This adds responsive wrappers to the entity tables, and switches filters to a drawer when width-constrained. If you have created a custom catalog or API index page, you will need to update the page structure to match the updated catalog customization documentation.- Updated dependencies
- @backstage/core-app-api@0.1.5
0.1.14
Patch Changes
48c9fcd33: Migrated to use the new@backstage/core-*packages rather than@backstage/core.- Updated dependencies
- @backstage/core-app-api@0.1.3
- @backstage/core-plugin-api@0.1.3
0.1.13
Patch Changes
7af9cef07: Fix a bug inMockStorageApiwhere it unhelpfully returned new empty buckets every single timee7c5e4b30: Update installation instructions in README.- Updated dependencies [
e7c5e4b30] - Updated dependencies [
0160678b1]- @backstage/theme@0.2.8
- @backstage/core-api@0.2.21
0.1.12
Patch Changes
61c3f927c: UpdatedMockErrorApito work with newObservabletype in@backstage/core.- Updated dependencies [
61c3f927c] - Updated dependencies [
65e6c4541]- @backstage/core-api@0.2.19
0.1.11
Patch Changes
062bbf90f: chore: bump@testing-library/user-eventfrom 12.8.3 to 13.1.8- Updated dependencies [
062bbf90f] - Updated dependencies [
675a569a9]- @backstage/core-api@0.2.18
0.1.10
Patch Changes
ae6250ce3: Remove unnecessary wrapping of elements rendered bywrapInTestAppandrenderInTestApp, which was breaking mount discovery.- Updated dependencies [
1279a3325] - Updated dependencies [
4a4681b1b] - Updated dependencies [
b051e770c]- @backstage/core-api@0.2.16
0.1.9
Patch Changes
4e0b5055a: AllowExternalRouteRefbindings inmountedRoutesto work with the latest version of core-api.- Updated dependencies [
a51dc0006] - Updated dependencies [
e7f9b9435] - Updated dependencies [
34ff49b0f] - Updated dependencies [
d88dd219e] - Updated dependencies [
c8b54c370]- @backstage/core-api@0.2.14
0.1.8
Patch Changes
dc12852c9: AllowExternalRouteRefinstances to be passed as a route ref tomountedRoutes.- Updated dependencies [
3a58084b6] - Updated dependencies [
1407b34c6] - Updated dependencies [
b6c4f485d] - Updated dependencies [
3a58084b6]- @backstage/core-api@0.2.11
0.1.7
Patch Changes
b51ee6ece: AddedmountedRoutesoption towrapInTestApp, allowing routes to be associated to concrete paths to makeuseRouteRefusable in tested components.
0.1.6
Patch Changes
1dc445e89: Update to use new plugin extension API- Updated dependencies [
d681db2b5] - Updated dependencies [
1dc445e89]- @backstage/core-api@0.2.7
0.1.5
Patch Changes
e1f4e24ef: Fix @backstage/cli not being a devDependency- Updated dependencies [
b6557c098] - Updated dependencies [
d8d5a17da] - Updated dependencies [
1665ae8bb]- @backstage/core-api@0.2.5
- @backstage/theme@0.2.2
0.1.4
Patch Changes
- Updated dependencies [
b4488ddb0] - Updated dependencies [
4a655c89d] - Updated dependencies [
8a16e8af8] - Updated dependencies [
00670a96e]- @backstage/cli@0.4.0
- @backstage/core-api@0.2.4
0.1.3
Patch Changes
- Updated dependencies [
1722cb53c] - Updated dependencies [
1722cb53c] - Updated dependencies [
902340451]- @backstage/cli@0.3.0
0.1.2
Patch Changes
- Updated dependencies [
28edd7d29] - Updated dependencies [
819a70229] - Updated dependencies [
ae5983387] - Updated dependencies [
0d4459c08] - Updated dependencies [
cbbd271c4] - Updated dependencies [
3472c8be7] - Updated dependencies [
1d0aec70f] - Updated dependencies [
a3840bed2] - Updated dependencies [
b79017fd3] - Updated dependencies [
72f6cda35] - Updated dependencies [
8c2b76e45] - Updated dependencies [
cba4e4d97] - Updated dependencies [
8afce088a] - Updated dependencies [
9a3b3dbf1] - Updated dependencies [
26e69ab1a] - Updated dependencies [
cbab5bbf8] - Updated dependencies [
7bbeb049f]- @backstage/cli@0.2.0
- @backstage/core-api@0.2.0
- @backstage/theme@0.2.0