Skip to content

Commit

Permalink
chore: bump packages
Browse files Browse the repository at this point in the history
  • Loading branch information
herleraja committed Nov 10, 2024
1 parent 08e8bde commit 644c1d3
Show file tree
Hide file tree
Showing 2 changed files with 555 additions and 367 deletions.
6 changes: 2 additions & 4 deletions packages/react/config/jest/setupTest.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable import/no-extraneous-dependencies */
import 'jest-styled-components';
import '@testing-library/jest-dom';
import { resetIdCounter } from 'downshift';
Expand All @@ -11,6 +12,7 @@ async function toBeAccessible(node, label) {
// we are running a test suite in node instead of jsdom. As a result, we only
// initialize it if this matcher is called
if (!aChecker) {
// eslint-disable-next-line global-require
aChecker = require('accessibility-checker');
}

Expand All @@ -31,10 +33,6 @@ expect.extend({ toBeAccessible });
beforeEach(() => {
jest.spyOn(uniqueHook, 'useUniqueId').mockImplementation(() => undefined);

// Every test we write should have at least one assertion. If this fails, we need to look at the invoking test to ensure there's not a promise being swallowed or something.
// Review this for more context: https://github.com/carbon-design-system/carbon-addons-iot-react/issues/1143#issuecomment-623577505
expect.hasAssertions();

// Ensure that downshift's internal ID is always 0, otherwise snapshots will change unnecessarily when unrelated snaps are regenerated.
resetIdCounter();

Expand Down
Loading

0 comments on commit 644c1d3

Please sign in to comment.