@trackunit/react-core-contexts-test 0.0.19-alpha-5162616e1.0 → 0.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/index2.js +16 -10
  3. package/package.json +5 -5
package/README.md CHANGED
@@ -4,7 +4,7 @@ The `@trackunit/react-core-contexts-test` package contains testing utilities for
4
4
  For more info and a full guide on Iris App SDK Development, please visit our [Developer Hub](https://developers.trackunit.com/).
5
5
 
6
6
  ## Trackunit
7
- This package was developed by Trackunit ApS.
7
+ This package was developed by Trackunit ApS.
8
8
  Trackunit is the leading SaaS-based IoT solution for the construction industry, offering an ecosystem of hardware, fleet management software & telematics.
9
9
 
10
10
  ![The Trackunit logo](https://trackunit.com/wp-content/uploads/2022/03/top-logo.svg)
package/index2.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
  import { act, render } from '@testing-library/react';
3
3
  import { UserSubscriptionPackageType } from '@trackunit/react-core-contexts-api';
4
- import { EnvironmentContextProvider, CurrentUserProvider, UserSubscriptionProvider, TokenProvider } from '@trackunit/react-core-hooks';
4
+ import { EnvironmentContextProvider, CurrentUserProvider, UserSubscriptionProvider, TokenProvider, ToastProvider } from '@trackunit/react-core-hooks';
5
5
  import { tw } from '@trackunit/tailwind-styled-components';
6
6
  import { MemoryRouter } from 'react-router-dom';
7
7
  import { ApolloLink } from '@apollo/client';
@@ -2536,17 +2536,23 @@ class MockContextProviderBuilder {
2536
2536
  children: jsx(TokenProvider, Object.assign({
2537
2537
  value: this.selectedTokenContext
2538
2538
  }, {
2539
- children: jsx(ApolloMockedProviderWithError, Object.assign({
2540
- mocks: this.selectedApolloMocks,
2541
- addTypename: false
2539
+ children: jsx(ToastProvider, Object.assign({
2540
+ value: {
2541
+ addToast: () => {}
2542
+ }
2542
2543
  }, {
2543
- children: addTestRootContainer ? jsx(TestRoot, Object.assign({
2544
- "data-testid": "testRoot"
2544
+ children: jsx(ApolloMockedProviderWithError, Object.assign({
2545
+ mocks: this.selectedApolloMocks,
2546
+ addTypename: false
2545
2547
  }, {
2546
- children: testChildren
2547
- })) : jsx("div", {
2548
- children: testChildren
2549
- })
2548
+ children: addTestRootContainer ? jsx(TestRoot, Object.assign({
2549
+ "data-testid": "testRoot"
2550
+ }, {
2551
+ children: testChildren
2552
+ })) : jsx("div", {
2553
+ children: testChildren
2554
+ })
2555
+ }))
2550
2556
  }))
2551
2557
  }))
2552
2558
  }))
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@trackunit/react-core-contexts-test",
3
- "version": "0.0.19-alpha-5162616e1.0",
3
+ "version": "0.0.20",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
- "license": "UNLICENSED",
5
+ "license": "MIT",
6
6
  "module": "./index.js",
7
7
  "main": "./index.js",
8
8
  "type": "module",
@@ -10,9 +10,9 @@
10
10
  "dependencies": {
11
11
  "@apollo/client": "3.6.9",
12
12
  "react": "17.0.1",
13
- "@trackunit/react-core-contexts-api": "0.0.46-alpha-5162616e1.0",
14
- "@trackunit/react-core-hooks": "0.0.49-alpha-5162616e1.0",
15
- "@trackunit/tailwind-styled-components": "0.0.39-alpha-5162616e1.0",
13
+ "@trackunit/react-core-contexts-api": "0.0.47",
14
+ "@trackunit/react-core-hooks": "0.0.50",
15
+ "@trackunit/tailwind-styled-components": "0.0.39",
16
16
  "react-router-dom": "^6.2.2",
17
17
  "graphql": "^15.8.0"
18
18
  },