Bump jest from 26.6.3 to 27.2.0 (#14722)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
This commit is contained in:
dependabot[bot] 2021-09-14 11:20:15 -04:00 committed by GitHub
parent a32b50d46c
commit f0700b2588
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 433 additions and 441 deletions

View file

@ -10,12 +10,12 @@ import '../../../../assets/javascripts/utilities/localDateTime';
/* global globalThis timestampToLocalDateTimeLong timestampToLocalDateTimeShort */
describe('<DateTime />', () => {
it('should have no a11y violations', async () => {
afterAll(() => {
delete globalThis.timestampToLocalDateTimeLong;
delete globalThis.timestampToLocalDateTimeShort;
});
afterAll(() => {
delete globalThis.timestampToLocalDateTimeLong;
delete globalThis.timestampToLocalDateTimeShort;
});
it('should have no a11y violations', async () => {
const { container } = render(
<DateTime
className="date-time"

View file

@ -53,4 +53,5 @@ module.exports = {
'jest-watch-typeahead/filename',
'jest-watch-typeahead/testname',
],
testEnvironment: 'jsdom',
};

View file

@ -116,7 +116,7 @@
"eslint-plugin-react": "^7.25.1",
"faker": "^5.5.3",
"husky": "^7.0.2",
"jest": "26.6.3",
"jest": "27.2.0",
"jest-axe": "^4.1.0",
"jest-fetch-mock": "^3.0.3",
"jest-watch-typeahead": "^0.6.3",

View file

@ -2,6 +2,8 @@
import 'jest-axe/extend-expect';
import './app/assets/javascripts/lib/xss';
global.setImmediate = global.setTimeout;
process.on('unhandledRejection', (error) => {
// Errors thrown here are typically fetch responses that have not been mocked.
throw error;

859
yarn.lock

File diff suppressed because it is too large Load diff