diff --git a/src/table/__tests__/analytics-events.test.tsx b/src/table/__tests__/analytics-events.test.tsx new file mode 100644 index 0000000000..6ea51afcc6 --- /dev/null +++ b/src/table/__tests__/analytics-events.test.tsx @@ -0,0 +1,33 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 +import React from 'react'; +import { render } from '@testing-library/react'; + +import Header from '../../../lib/components/header'; +import { ComponentMetrics, setComponentMetrics } from '../../../lib/components/internal/analytics'; +import Table from '../../../lib/components/table'; + +const componentMounted = jest.fn(); +const componentUpdated = jest.fn(); + +setComponentMetrics({ componentMounted, componentUpdated }); + +describe('Task name', () => { + test('instanceIdentifier overrides the automatically determined task name', () => { + render( +