@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.
- package/.rush/temp/package-deps_rebuild.json +4 -4
- package/CHANGELOG.json +15 -0
- package/CHANGELOG.md +9 -1
- package/coverage/clover.xml +7 -7
- package/coverage/coverage-final.json +3 -3
- package/coverage/lcov-report/index.html +1 -1
- package/coverage/lcov-report/src/ReportsConfigWidget.ts.html +2 -2
- package/coverage/lcov-report/src/index.html +1 -1
- package/coverage/lcov-report/src/test/index.html +1 -1
- package/coverage/lcov-report/src/test/test-utils.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/ReportsConfigUiProvider.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/ActionPanel.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/AddMappingsModal.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/DeleteModal.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/Extraction.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/HorizontalTile.tsx.html +2 -2
- package/coverage/lcov-report/src/widget/components/LocalizedTablePaginator.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/ReportAction.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/ReportMappings.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/Reports.tsx.html +4 -4
- package/coverage/lcov-report/src/widget/components/ReportsContainer.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/SearchBar.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/SelectIModel.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/index.html +1 -1
- package/coverage/lcov-report/src/widget/components/utils.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/context/ReportsApiConfigContext.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/context/index.html +1 -1
- package/coverage/lcov-report/src/widget/hooks/index.html +1 -1
- package/coverage/lcov-report/src/widget/hooks/useValidator.ts.html +1 -1
- package/coverage/lcov-report/src/widget/index.html +1 -1
- package/coverage/lcov.info +22 -22
- package/lib/cjs/test/ReportMappings.test.js +4 -3
- package/lib/cjs/test/ReportMappings.test.js.map +1 -1
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/test/ReportMappings.test.js +4 -3
- package/lib/esm/test/ReportMappings.test.js.map +1 -1
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/reports-config-widget-react.build.error.log +4 -4
- package/reports-config-widget-react.build.log +5 -5
- package/src/test/ReportMappings.test.tsx +4 -3
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
PASS src/test/ReportMappings.test.tsx (
|
|
2
|
-
PASS src/test/Reports.test.tsx (
|
|
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:
|
|
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.
|
|
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 (
|
|
8
|
-
PASS src/test/Reports.test.tsx (
|
|
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:
|
|
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
|
-
|
|
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);
|