Skip to content

Commit

Permalink
fix: update tests after dep upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
soup-in-boots committed Nov 18, 2023
1 parent ccd590c commit 0467c41
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 12 deletions.
1 change: 1 addition & 0 deletions packages/core/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module.exports = async () => {
return {
setupFilesAfterEnv: ['<rootDir>/setup-tests.js'],
rootDir: __dirname,
reporters: ['default', 'jest-summary-reporter'],
testPathIgnorePatterns: [
Expand Down
4 changes: 4 additions & 0 deletions packages/core/setup-tests.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import '@testing-library/jest-dom';
import { TextEncoder, TextDecoder } from 'util';
global.TextEncoder = TextEncoder;
global.TextDecoder = TextDecoder;
3 changes: 0 additions & 3 deletions packages/core/test/components/mapper/array.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import { render, fireEvent, waitFor } from '@testing-library/react';
import { ArrayComponent } from '../../../src/components/mapper/array';
import '@testing-library/jest-dom/extend-expect';
import shortid from 'shortid';

import { SchemaForm, util, constants } from '../../../src';
import React from 'react';
Expand Down
1 change: 0 additions & 1 deletion packages/core/test/components/mapper/checkbox.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { render, fireEvent, waitFor } from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect';
import * as barebones from '@forml/decorator-barebones';

import { SchemaForm, getLocalizer, util } from '../../../src';
Expand Down
1 change: 0 additions & 1 deletion packages/core/test/components/mapper/date.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { render, fireEvent, waitFor } from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect';
import { createElement as h } from 'react';
import { SchemaForm, getLocalizer, util } from '../../../src';
import * as barebones from '@forml/decorator-barebones';
Expand Down
1 change: 0 additions & 1 deletion packages/core/test/components/mapper/fieldset.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { render, fireEvent, waitFor } from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect';
import { createElement as h } from 'react';
import { SchemaForm, getLocalizer, util, decorators } from '../../../src';
import * as barebones from '@forml/decorator-barebones';
Expand Down
1 change: 0 additions & 1 deletion packages/core/test/components/mapper/integer.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { render, fireEvent, waitFor } from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect';
import { createElement as h } from 'react';
import { SchemaForm, getLocalizer, util } from '../../../src';
import * as barebones from '@forml/decorator-barebones';
Expand Down
1 change: 0 additions & 1 deletion packages/core/test/components/mapper/number.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { render, fireEvent, waitFor } from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect';
import { createElement as h } from 'react';
import { SchemaForm, getLocalizer, util } from '../../../src';
import * as barebones from '@forml/decorator-barebones';
Expand Down
1 change: 0 additions & 1 deletion packages/core/test/components/mapper/select.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { render, fireEvent, waitFor } from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect';
import { config } from 'react-transition-group';
import * as barebones from '@forml/decorator-barebones';

Expand Down
1 change: 0 additions & 1 deletion packages/core/test/general.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { render, fireEvent, waitFor } from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect';

import { SchemaForm, getLocalizer, util } from '../src';
import { createElement as h } from 'react';
Expand Down
2 changes: 0 additions & 2 deletions packages/decorator-mui/src/__tests__/mui.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import '@testing-library/jest-dom/extend-expect';

import { AdapterMoment } from '@mui/x-date-pickers/AdapterMoment';
import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider';
import { render } from '@testing-library/react';
Expand Down

0 comments on commit 0467c41

Please sign in to comment.