@m4l/testing 0.0.14-beta.0 → 0.0.14-beta.1

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.
@@ -0,0 +1,7 @@
1
+ export type M4LDataGridCypressColumn = {
2
+ key: string;
3
+ value: any;
4
+ headerText: string;
5
+ visible: boolean;
6
+ };
7
+ export type M4LGetCypressDataGridColumnsConfig<T> = (data: T) => M4LDataGridCypressColumn[];
@@ -0,0 +1,14 @@
1
+ import './commands/components/DataGrid/types.d';
2
+ import './commands/components/DynamicFilter/types.d';
3
+ import './commands/components/DynamicSort/types.d';
4
+ import './commands/components/MenuActions/types.d';
5
+ import './commands/components/WindowBase/types.d';
6
+ import './commands/components/Popover/types.d';
7
+ import './commands/components/PropertyValue/types.d';
8
+ import './commands/components/Tab/types.d';
9
+
10
+ import './commands/intercepts/noPrivileges/types';
11
+
12
+ export type * from './commands/components/DataGrid/export';
13
+
14
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@m4l/testing",
3
3
  "description": "Shared testing utilities for MFs",
4
- "version": "0.0.14-beta.0",
4
+ "version": "0.0.14-beta.1",
5
5
  "license": "UNLICENSED",
6
6
  "author": "M4L Team",
7
7
  "scripts": {
@@ -0,0 +1,11 @@
1
+ import { renderHook, cleanup, fireEvent, RenderResult, screen, waitFor, within } from '@testing-library/react';
2
+ import { default as userEvent } from '@testing-library/user-event';
3
+ import { act, ReactElement } from 'react';
4
+ import { beforeEach, describe, expect } from 'vitest';
5
+ /**
6
+ * Render a component
7
+ */
8
+ declare const customRender: (ui: ReactElement, options?: {}) => RenderResult & {
9
+ user: ReturnType<typeof userEvent.setup>;
10
+ };
11
+ export { act, cleanup, describe, expect, fireEvent, customRender as render, renderHook, screen, userEvent, waitFor, within, beforeEach, };