@itwin/reports-config-widget-react 0.0.2 → 0.0.3

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 (41) hide show
  1. package/.rush/temp/package-deps_rebuild.json +4 -4
  2. package/CHANGELOG.json +15 -0
  3. package/CHANGELOG.md +9 -1
  4. package/coverage/clover.xml +7 -7
  5. package/coverage/coverage-final.json +3 -3
  6. package/coverage/lcov-report/index.html +1 -1
  7. package/coverage/lcov-report/src/ReportsConfigWidget.ts.html +2 -2
  8. package/coverage/lcov-report/src/index.html +1 -1
  9. package/coverage/lcov-report/src/test/index.html +1 -1
  10. package/coverage/lcov-report/src/test/test-utils.tsx.html +1 -1
  11. package/coverage/lcov-report/src/widget/ReportsConfigUiProvider.tsx.html +1 -1
  12. package/coverage/lcov-report/src/widget/components/ActionPanel.tsx.html +1 -1
  13. package/coverage/lcov-report/src/widget/components/AddMappingsModal.tsx.html +1 -1
  14. package/coverage/lcov-report/src/widget/components/DeleteModal.tsx.html +1 -1
  15. package/coverage/lcov-report/src/widget/components/Extraction.tsx.html +1 -1
  16. package/coverage/lcov-report/src/widget/components/HorizontalTile.tsx.html +2 -2
  17. package/coverage/lcov-report/src/widget/components/LocalizedTablePaginator.tsx.html +1 -1
  18. package/coverage/lcov-report/src/widget/components/ReportAction.tsx.html +1 -1
  19. package/coverage/lcov-report/src/widget/components/ReportMappings.tsx.html +1 -1
  20. package/coverage/lcov-report/src/widget/components/Reports.tsx.html +4 -4
  21. package/coverage/lcov-report/src/widget/components/ReportsContainer.tsx.html +1 -1
  22. package/coverage/lcov-report/src/widget/components/SearchBar.tsx.html +1 -1
  23. package/coverage/lcov-report/src/widget/components/SelectIModel.tsx.html +1 -1
  24. package/coverage/lcov-report/src/widget/components/index.html +1 -1
  25. package/coverage/lcov-report/src/widget/components/utils.tsx.html +1 -1
  26. package/coverage/lcov-report/src/widget/context/ReportsApiConfigContext.tsx.html +1 -1
  27. package/coverage/lcov-report/src/widget/context/index.html +1 -1
  28. package/coverage/lcov-report/src/widget/hooks/index.html +1 -1
  29. package/coverage/lcov-report/src/widget/hooks/useValidator.ts.html +1 -1
  30. package/coverage/lcov-report/src/widget/index.html +1 -1
  31. package/coverage/lcov.info +22 -22
  32. package/lib/cjs/test/ReportMappings.test.js +4 -3
  33. package/lib/cjs/test/ReportMappings.test.js.map +1 -1
  34. package/lib/cjs/tsconfig.tsbuildinfo +1 -1
  35. package/lib/esm/test/ReportMappings.test.js +4 -3
  36. package/lib/esm/test/ReportMappings.test.js.map +1 -1
  37. package/lib/esm/tsconfig.tsbuildinfo +1 -1
  38. package/package.json +1 -1
  39. package/reports-config-widget-react.build.error.log +4 -4
  40. package/reports-config-widget-react.build.log +5 -5
  41. package/src/test/ReportMappings.test.tsx +4 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/reports-config-widget-react",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "An iTwin.js 3D Viewer Widget that interfaces with the iTwin Reporting Platform.",
5
5
  "keywords": [
6
6
  "Bentley",
@@ -1,10 +1,10 @@
1
- PASS src/test/ReportMappings.test.tsx (33.661 s)
2
- PASS src/test/Reports.test.tsx (7.992 s)
3
- PASS src/test/ReportAction.test.tsx
1
+ PASS src/test/ReportMappings.test.tsx (38.122 s)
2
+ PASS src/test/Reports.test.tsx (8.714 s)
3
+ PASS src/test/ReportAction.test.tsx (5.374 s)
4
4
  PASS src/test/WidgetHeader.test.tsx
5
5
 
6
6
  Test Suites: 4 passed, 4 total
7
7
  Tests: 22 passed, 22 total
8
8
  Snapshots: 0 total
9
- Time: 49.631 s
9
+ Time: 56.138 s
10
10
  Ran all test suites.
@@ -1,12 +1,12 @@
1
1
  Invoking: npm test -- --coverage
2
2
 
3
3
 
4
- > @itwin/reports-config-widget-react@0.0.1 test /home/vsts/work/1/s/packages/itwin/reports-config-widget
4
+ > @itwin/reports-config-widget-react@0.0.2 test /home/vsts/work/1/s/packages/itwin/reports-config-widget
5
5
  > jest "--coverage"
6
6
 
7
- PASS src/test/ReportMappings.test.tsx (33.661 s)
8
- PASS src/test/Reports.test.tsx (7.992 s)
9
- PASS src/test/ReportAction.test.tsx
7
+ PASS src/test/ReportMappings.test.tsx (38.122 s)
8
+ PASS src/test/Reports.test.tsx (8.714 s)
9
+ PASS src/test/ReportAction.test.tsx (5.374 s)
10
10
  PASS src/test/WidgetHeader.test.tsx
11
11
  ------------------------------|---------|----------|---------|---------|-------------------------------
12
12
  File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
@@ -41,5 +41,5 @@ All files | 87.72 | 70.3 | 86.32 | 87.64 |
41
41
  Test Suites: 4 passed, 4 total
42
42
  Tests: 22 passed, 22 total
43
43
  Snapshots: 0 total
44
- Time: 49.631 s
44
+ Time: 56.138 s
45
45
  Ran all test suites.
@@ -733,7 +733,7 @@ describe("Report Mappings View", () => {
733
733
  const mockReportMappings = mockReportMappingsFactory();
734
734
  const [_, iModelHandlers] = mockMappingsFactory(mockReportMappings);
735
735
 
736
- const delay = REFRESH_DELAY;
736
+ const delay = REFRESH_DELAY + 1000;
737
737
 
738
738
  // Faking timers currently makes all promise based queries from RTL become unpredictable.
739
739
  // https://github.com/testing-library/dom-testing-library/issues/988
@@ -800,7 +800,7 @@ describe("Report Mappings View", () => {
800
800
  `${REPORTS_CONFIG_BASE_URL}/insights/reporting/datasources/imodels/${mockIModel.id}/extraction/run`,
801
801
  async (_req, res, ctx) => {
802
802
  return res(
803
- ctx.delay(),
803
+ ctx.delay(800),
804
804
  ctx.status(200),
805
805
  ctx.json(mockExtractionResponse)
806
806
  );
@@ -843,7 +843,8 @@ describe("Report Mappings View", () => {
843
843
  ).toBeInTheDocument();
844
844
  // Should be two in the document. One in the status and the other in the list.
845
845
  // TODO Assert that it is in the correct HorizontalTile
846
- expect(screen.getAllByTitle(/starting/i)).toHaveLength(2);
846
+ const startingStates = await screen.findAllByTitle(/starting/i);
847
+ expect(startingStates).toHaveLength(2);
847
848
 
848
849
  const loadingStates = await screen.findAllByTitle(/loading/i);
849
850
  expect(loadingStates).toHaveLength(2);