Skip to content

Commit a9c0380

Browse files
committed
fix imports
1 parent ae21dc6 commit a9c0380

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ module.exports = {
4242
},
4343
transformIgnorePatterns: [
4444
// ESM modules should be transformed.
45-
'<rootDir>/node_modules/(?!(react-photoswipe-gallery|photoswipe)/)',
45+
'<rootDir>/node_modules/(?!(cheerio|react-photoswipe-gallery|photoswipe)/)',
4646
],
4747
watchPlugins: [
4848
'jest-watch-typeahead/filename',

tests/unit/amo/server/test_base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import createSagaMiddleware from 'redux-saga';
1111
import NestedStatus from 'react-nested-status';
1212
import supertest from 'supertest';
1313
import defaultConfig from 'config';
14-
import cheerio from 'cheerio';
14+
import * as cheerio from 'cheerio';
1515
import { configureStore } from '@reduxjs/toolkit';
1616

1717
import { REGION_CODE_HEADER, createApiError } from 'amo/api';

tests/unit/blog-utils/test_index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import cheerio from 'cheerio';
1+
import * as cheerio from 'cheerio';
22

33
import { buildFooter, buildHeader, buildStaticAddonCard } from 'blog-utils';
44
import { fakeAddon } from 'tests/unit/helpers';

0 commit comments

Comments
 (0)