summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Juan Martín Seery <me@juanm04.com> 2022-04-27 15:43:31 -0300
committerGravatar GitHub <noreply@github.com> 2022-04-27 15:43:31 -0300
commit41c70ae50359247f972833feba86698980b647a5 (patch)
tree38dc416cb8b7b455305e3b381e241397be1f61d4
parentf23d6c528ed5fbb37614789a5abd480ee731cd0f (diff)
downloadastro-41c70ae50359247f972833feba86698980b647a5.tar.gz
astro-41c70ae50359247f972833feba86698980b647a5.tar.zst
astro-41c70ae50359247f972833feba86698980b647a5.zip
chore: remove deprecation message when using cheerio's default export (#3225)
-rw-r--r--packages/astro/test/0-css.test.js2
-rw-r--r--packages/astro/test/astro-assets.test.js2
-rw-r--r--packages/astro/test/astro-attrs.test.js2
-rw-r--r--packages/astro/test/astro-basic.test.js2
-rw-r--r--packages/astro/test/astro-children.test.js2
-rw-r--r--packages/astro/test/astro-class-list.test.js2
-rw-r--r--packages/astro/test/astro-component-code.test.js2
-rw-r--r--packages/astro/test/astro-css-bundling-import.test.js2
-rw-r--r--packages/astro/test/astro-css-bundling.test.js2
-rw-r--r--packages/astro/test/astro-directives.test.js2
-rw-r--r--packages/astro/test/astro-doctype.test.js2
-rw-r--r--packages/astro/test/astro-dynamic.test.js2
-rw-r--r--packages/astro/test/astro-expr.test.js2
-rw-r--r--packages/astro/test/astro-fallback.test.js2
-rw-r--r--packages/astro/test/astro-global.test.js2
-rw-r--r--packages/astro/test/astro-markdown-css.test.js2
-rw-r--r--packages/astro/test/astro-markdown-drafts.test.js2
-rw-r--r--packages/astro/test/astro-markdown-plugins.test.js2
-rw-r--r--packages/astro/test/astro-markdown-shiki.test.js2
-rw-r--r--packages/astro/test/astro-markdown-url.test.js2
-rw-r--r--packages/astro/test/astro-markdown.test.js2
-rw-r--r--packages/astro/test/astro-pages.test.js2
-rw-r--r--packages/astro/test/astro-pagination.test.js2
-rw-r--r--packages/astro/test/astro-partial-html.test.js2
-rw-r--r--packages/astro/test/astro-scripts.test.js2
-rw-r--r--packages/astro/test/astro-slots.test.js2
-rw-r--r--packages/astro/test/dev-routing.test.js2
-rw-r--r--packages/astro/test/fetch.test.js2
-rw-r--r--packages/astro/test/lit-element.test.js2
-rw-r--r--packages/astro/test/markdown.test.js2
-rw-r--r--packages/astro/test/postcss.test.js2
-rw-r--r--packages/astro/test/preact-component.test.js2
-rw-r--r--packages/astro/test/remote-css.test.js2
-rw-r--r--packages/astro/test/slots-preact.test.js2
-rw-r--r--packages/astro/test/slots-react.test.js2
-rw-r--r--packages/astro/test/slots-solid.test.js2
-rw-r--r--packages/astro/test/slots-svelte.test.js2
-rw-r--r--packages/astro/test/slots-vue.test.js2
-rw-r--r--packages/astro/test/solid-component.test.js2
-rw-r--r--packages/astro/test/static-build-code-component.test.js2
-rw-r--r--packages/astro/test/static-build-frameworks.test.js2
-rw-r--r--packages/astro/test/static-build-page-url-format.test.js2
-rw-r--r--packages/astro/test/svelte-component.test.js2
-rw-r--r--packages/astro/test/tailwindcss.test.js2
-rw-r--r--packages/astro/test/vue-component.test.js2
45 files changed, 45 insertions, 45 deletions
diff --git a/packages/astro/test/0-css.test.js b/packages/astro/test/0-css.test.js
index b16e22f39..65efdeba2 100644
--- a/packages/astro/test/0-css.test.js
+++ b/packages/astro/test/0-css.test.js
@@ -5,7 +5,7 @@
*/
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
let fixture;
diff --git a/packages/astro/test/astro-assets.test.js b/packages/astro/test/astro-assets.test.js
index a003f70c9..7daa4aaa3 100644
--- a/packages/astro/test/astro-assets.test.js
+++ b/packages/astro/test/astro-assets.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
import srcsetParse from 'srcset-parse';
diff --git a/packages/astro/test/astro-attrs.test.js b/packages/astro/test/astro-attrs.test.js
index ad52782bb..d2d585950 100644
--- a/packages/astro/test/astro-attrs.test.js
+++ b/packages/astro/test/astro-attrs.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Attributes', async () => {
diff --git a/packages/astro/test/astro-basic.test.js b/packages/astro/test/astro-basic.test.js
index e6d59af49..5c350ce1f 100644
--- a/packages/astro/test/astro-basic.test.js
+++ b/packages/astro/test/astro-basic.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Astro basics', () => {
diff --git a/packages/astro/test/astro-children.test.js b/packages/astro/test/astro-children.test.js
index 3d6ff54c0..8a396cce4 100644
--- a/packages/astro/test/astro-children.test.js
+++ b/packages/astro/test/astro-children.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Component children', () => {
diff --git a/packages/astro/test/astro-class-list.test.js b/packages/astro/test/astro-class-list.test.js
index 24a6ff81e..05e268f90 100644
--- a/packages/astro/test/astro-class-list.test.js
+++ b/packages/astro/test/astro-class-list.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Class List', async () => {
diff --git a/packages/astro/test/astro-component-code.test.js b/packages/astro/test/astro-component-code.test.js
index 783fa734d..e9efb4ca9 100644
--- a/packages/astro/test/astro-component-code.test.js
+++ b/packages/astro/test/astro-component-code.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('<Code>', () => {
diff --git a/packages/astro/test/astro-css-bundling-import.test.js b/packages/astro/test/astro-css-bundling-import.test.js
index 665410c1f..38cb7216b 100644
--- a/packages/astro/test/astro-css-bundling-import.test.js
+++ b/packages/astro/test/astro-css-bundling-import.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('CSS Bundling (ESM import)', () => {
diff --git a/packages/astro/test/astro-css-bundling.test.js b/packages/astro/test/astro-css-bundling.test.js
index ea589816e..7b3c70384 100644
--- a/packages/astro/test/astro-css-bundling.test.js
+++ b/packages/astro/test/astro-css-bundling.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
// note: the hashes should be deterministic, but updating the file contents will change hashes
diff --git a/packages/astro/test/astro-directives.test.js b/packages/astro/test/astro-directives.test.js
index e2223e637..b23fbd848 100644
--- a/packages/astro/test/astro-directives.test.js
+++ b/packages/astro/test/astro-directives.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Directives', async () => {
diff --git a/packages/astro/test/astro-doctype.test.js b/packages/astro/test/astro-doctype.test.js
index 8ae555f2a..e402c137f 100644
--- a/packages/astro/test/astro-doctype.test.js
+++ b/packages/astro/test/astro-doctype.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Doctype', () => {
diff --git a/packages/astro/test/astro-dynamic.test.js b/packages/astro/test/astro-dynamic.test.js
index d133fba29..1b8b323ee 100644
--- a/packages/astro/test/astro-dynamic.test.js
+++ b/packages/astro/test/astro-dynamic.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Dynamic components', () => {
diff --git a/packages/astro/test/astro-expr.test.js b/packages/astro/test/astro-expr.test.js
index 0a514e48f..c3c71450f 100644
--- a/packages/astro/test/astro-expr.test.js
+++ b/packages/astro/test/astro-expr.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Expressions', () => {
diff --git a/packages/astro/test/astro-fallback.test.js b/packages/astro/test/astro-fallback.test.js
index 9e9752c8a..dd0c793fb 100644
--- a/packages/astro/test/astro-fallback.test.js
+++ b/packages/astro/test/astro-fallback.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Dynamic component fallback', () => {
diff --git a/packages/astro/test/astro-global.test.js b/packages/astro/test/astro-global.test.js
index 46564ed0d..17520dacf 100644
--- a/packages/astro/test/astro-global.test.js
+++ b/packages/astro/test/astro-global.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Astro.*', () => {
diff --git a/packages/astro/test/astro-markdown-css.test.js b/packages/astro/test/astro-markdown-css.test.js
index 04e274633..40710ce85 100644
--- a/packages/astro/test/astro-markdown-css.test.js
+++ b/packages/astro/test/astro-markdown-css.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
let fixture;
diff --git a/packages/astro/test/astro-markdown-drafts.test.js b/packages/astro/test/astro-markdown-drafts.test.js
index 2c6e60be8..5be12aa82 100644
--- a/packages/astro/test/astro-markdown-drafts.test.js
+++ b/packages/astro/test/astro-markdown-drafts.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Astro Markdown with draft posts disabled', () => {
diff --git a/packages/astro/test/astro-markdown-plugins.test.js b/packages/astro/test/astro-markdown-plugins.test.js
index 35a3f829d..30e0d7f74 100644
--- a/packages/astro/test/astro-markdown-plugins.test.js
+++ b/packages/astro/test/astro-markdown-plugins.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
import addClasses from './fixtures/astro-markdown-plugins/add-classes.mjs';
diff --git a/packages/astro/test/astro-markdown-shiki.test.js b/packages/astro/test/astro-markdown-shiki.test.js
index baee0348e..7a03fb390 100644
--- a/packages/astro/test/astro-markdown-shiki.test.js
+++ b/packages/astro/test/astro-markdown-shiki.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Astro Markdown Shiki', () => {
diff --git a/packages/astro/test/astro-markdown-url.test.js b/packages/astro/test/astro-markdown-url.test.js
index 54ce8bfba..01d777b9f 100644
--- a/packages/astro/test/astro-markdown-url.test.js
+++ b/packages/astro/test/astro-markdown-url.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Astro Markdown URL', () => {
diff --git a/packages/astro/test/astro-markdown.test.js b/packages/astro/test/astro-markdown.test.js
index 7d4497822..cfbf33b0a 100644
--- a/packages/astro/test/astro-markdown.test.js
+++ b/packages/astro/test/astro-markdown.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Astro Markdown', () => {
diff --git a/packages/astro/test/astro-pages.test.js b/packages/astro/test/astro-pages.test.js
index 3a1a504ad..0539388dd 100644
--- a/packages/astro/test/astro-pages.test.js
+++ b/packages/astro/test/astro-pages.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Pages', () => {
diff --git a/packages/astro/test/astro-pagination.test.js b/packages/astro/test/astro-pagination.test.js
index 80c460f94..563b66492 100644
--- a/packages/astro/test/astro-pagination.test.js
+++ b/packages/astro/test/astro-pagination.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Pagination', () => {
diff --git a/packages/astro/test/astro-partial-html.test.js b/packages/astro/test/astro-partial-html.test.js
index bc50df41b..15fc5ee36 100644
--- a/packages/astro/test/astro-partial-html.test.js
+++ b/packages/astro/test/astro-partial-html.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Partial HTML', async () => {
diff --git a/packages/astro/test/astro-scripts.test.js b/packages/astro/test/astro-scripts.test.js
index ad60511ed..28c33fc51 100644
--- a/packages/astro/test/astro-scripts.test.js
+++ b/packages/astro/test/astro-scripts.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import path from 'path';
import { loadFixture } from './test-utils.js';
diff --git a/packages/astro/test/astro-slots.test.js b/packages/astro/test/astro-slots.test.js
index d890f2f31..60d4e2560 100644
--- a/packages/astro/test/astro-slots.test.js
+++ b/packages/astro/test/astro-slots.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Slots', () => {
diff --git a/packages/astro/test/dev-routing.test.js b/packages/astro/test/dev-routing.test.js
index 7ec6348c4..439ee6988 100644
--- a/packages/astro/test/dev-routing.test.js
+++ b/packages/astro/test/dev-routing.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Development Routing', () => {
diff --git a/packages/astro/test/fetch.test.js b/packages/astro/test/fetch.test.js
index c548aa3f1..053c7683e 100644
--- a/packages/astro/test/fetch.test.js
+++ b/packages/astro/test/fetch.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Global Fetch', () => {
diff --git a/packages/astro/test/lit-element.test.js b/packages/astro/test/lit-element.test.js
index 6b8690fff..34237ae33 100644
--- a/packages/astro/test/lit-element.test.js
+++ b/packages/astro/test/lit-element.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('LitElement test', function () {
diff --git a/packages/astro/test/markdown.test.js b/packages/astro/test/markdown.test.js
index b8263ce76..d12fa25cd 100644
--- a/packages/astro/test/markdown.test.js
+++ b/packages/astro/test/markdown.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Markdown tests', () => {
diff --git a/packages/astro/test/postcss.test.js b/packages/astro/test/postcss.test.js
index 53c4f7665..1697116fd 100644
--- a/packages/astro/test/postcss.test.js
+++ b/packages/astro/test/postcss.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import eol from 'eol';
import { loadFixture } from './test-utils.js';
diff --git a/packages/astro/test/preact-component.test.js b/packages/astro/test/preact-component.test.js
index 868f15270..c2814ebca 100644
--- a/packages/astro/test/preact-component.test.js
+++ b/packages/astro/test/preact-component.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Preact component', () => {
diff --git a/packages/astro/test/remote-css.test.js b/packages/astro/test/remote-css.test.js
index e7cb54090..4ca6eb422 100644
--- a/packages/astro/test/remote-css.test.js
+++ b/packages/astro/test/remote-css.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Remote CSS', () => {
diff --git a/packages/astro/test/slots-preact.test.js b/packages/astro/test/slots-preact.test.js
index 380979f04..c86a25fb7 100644
--- a/packages/astro/test/slots-preact.test.js
+++ b/packages/astro/test/slots-preact.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Slots: Preact', () => {
diff --git a/packages/astro/test/slots-react.test.js b/packages/astro/test/slots-react.test.js
index 3cca8ae05..da6953142 100644
--- a/packages/astro/test/slots-react.test.js
+++ b/packages/astro/test/slots-react.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Slots: React', () => {
diff --git a/packages/astro/test/slots-solid.test.js b/packages/astro/test/slots-solid.test.js
index cf59ada41..d7659f033 100644
--- a/packages/astro/test/slots-solid.test.js
+++ b/packages/astro/test/slots-solid.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Slots: Solid', () => {
diff --git a/packages/astro/test/slots-svelte.test.js b/packages/astro/test/slots-svelte.test.js
index 3c5b5d7fa..0bbbae25a 100644
--- a/packages/astro/test/slots-svelte.test.js
+++ b/packages/astro/test/slots-svelte.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Slots: Svelte', () => {
diff --git a/packages/astro/test/slots-vue.test.js b/packages/astro/test/slots-vue.test.js
index 9cd8ac6eb..2b0dbc743 100644
--- a/packages/astro/test/slots-vue.test.js
+++ b/packages/astro/test/slots-vue.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Slots: Vue', () => {
diff --git a/packages/astro/test/solid-component.test.js b/packages/astro/test/solid-component.test.js
index f870468f2..0a05118eb 100644
--- a/packages/astro/test/solid-component.test.js
+++ b/packages/astro/test/solid-component.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { isWindows, loadFixture } from './test-utils.js';
describe('Solid component', () => {
diff --git a/packages/astro/test/static-build-code-component.test.js b/packages/astro/test/static-build-code-component.test.js
index f6a7d205d..9a26f0675 100644
--- a/packages/astro/test/static-build-code-component.test.js
+++ b/packages/astro/test/static-build-code-component.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Code component inside static build', () => {
diff --git a/packages/astro/test/static-build-frameworks.test.js b/packages/astro/test/static-build-frameworks.test.js
index 8bb2e116a..08dfdcf2f 100644
--- a/packages/astro/test/static-build-frameworks.test.js
+++ b/packages/astro/test/static-build-frameworks.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture, isWindows } from './test-utils.js';
describe('Static build - frameworks', () => {
diff --git a/packages/astro/test/static-build-page-url-format.test.js b/packages/astro/test/static-build-page-url-format.test.js
index 941a7e571..6d08e85e6 100644
--- a/packages/astro/test/static-build-page-url-format.test.js
+++ b/packages/astro/test/static-build-page-url-format.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
function addLeadingSlash(path) {
diff --git a/packages/astro/test/svelte-component.test.js b/packages/astro/test/svelte-component.test.js
index a68acd924..da69171ee 100644
--- a/packages/astro/test/svelte-component.test.js
+++ b/packages/astro/test/svelte-component.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { isWindows, loadFixture } from './test-utils.js';
describe('Svelte component', () => {
diff --git a/packages/astro/test/tailwindcss.test.js b/packages/astro/test/tailwindcss.test.js
index bff025ffc..c8fad9f4c 100644
--- a/packages/astro/test/tailwindcss.test.js
+++ b/packages/astro/test/tailwindcss.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
let fixture;
diff --git a/packages/astro/test/vue-component.test.js b/packages/astro/test/vue-component.test.js
index d3870dc88..3c57c6544 100644
--- a/packages/astro/test/vue-component.test.js
+++ b/packages/astro/test/vue-component.test.js
@@ -1,5 +1,5 @@
import { expect } from 'chai';
-import cheerio from 'cheerio';
+import * as cheerio from 'cheerio';
import { isWindows, loadFixture } from './test-utils.js';
describe('Vue component', () => {