toast: fix toast test (use ESM imports)
This commit is contained in:
parent
3f640e9797
commit
47008f39a6
1 changed files with 3 additions and 3 deletions
|
@ -1,14 +1,14 @@
|
||||||
import { render } from '@testing-library/react';
|
import { render } from '@testing-library/react';
|
||||||
import { AxiosError, AxiosHeaders } from 'axios';
|
import { AxiosError, AxiosHeaders } from 'axios';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import { Toaster } from 'react-hot-toast';
|
||||||
import { IntlProvider } from 'react-intl';
|
import { IntlProvider } from 'react-intl';
|
||||||
|
|
||||||
import { act, screen } from 'soapbox/jest/test-helpers';
|
import { act, screen } from 'soapbox/jest/test-helpers';
|
||||||
|
|
||||||
function renderApp() {
|
import toast from './toast';
|
||||||
const { Toaster } = require('react-hot-toast');
|
|
||||||
const toast = require('./toast').default;
|
|
||||||
|
|
||||||
|
function renderApp() {
|
||||||
return {
|
return {
|
||||||
toast,
|
toast,
|
||||||
...render(
|
...render(
|
||||||
|
|
Loading…
Reference in a new issue