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:
parent
a32b50d46c
commit
f0700b2588
5 changed files with 433 additions and 441 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -53,4 +53,5 @@ module.exports = {
|
|||
'jest-watch-typeahead/filename',
|
||||
'jest-watch-typeahead/testname',
|
||||
],
|
||||
testEnvironment: 'jsdom',
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue