diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/astro/e2e/react-component.test.js | 1 | ||||
-rw-r--r-- | packages/astro/test/i18n-routing.test.js | 6 | ||||
-rw-r--r-- | packages/astro/test/parallel.test.js (renamed from packages/astro/test/parallel.js) | 0 | ||||
-rw-r--r-- | packages/astro/test/ssr-split-manifest.test.js | 1 | ||||
-rw-r--r-- | packages/astro/test/units/dev/dev.test.js | 1 | ||||
-rw-r--r-- | packages/astro/test/units/i18n/astro_i18n.test.js (renamed from packages/astro/test/units/i18n/astro_i18n.js) | 6 | ||||
-rw-r--r-- | packages/create-astro/test/typescript.test.js | 1 | ||||
-rw-r--r-- | packages/integrations/mdx/test/mdx-slots.test.js (renamed from packages/integrations/mdx/test/mdx-slots.js) | 0 | ||||
-rw-r--r-- | packages/integrations/node/test/bad-urls.test.js | 2 | ||||
-rw-r--r-- | packages/integrations/node/test/headers.test.js (renamed from packages/integrations/node/test/headers.test.js.js) | 0 |
10 files changed, 9 insertions, 9 deletions
diff --git a/packages/astro/e2e/react-component.test.js b/packages/astro/e2e/react-component.test.js index b19a071d6..361ee8d69 100644 --- a/packages/astro/e2e/react-component.test.js +++ b/packages/astro/e2e/react-component.test.js @@ -46,7 +46,6 @@ test.describe('React client id generation', () => { const hydratedId1 = await components.nth(2).getAttribute('id'); const clientOnlyId0 = await components.nth(3).getAttribute('id'); const clientOnlyId1 = await components.nth(4).getAttribute('id'); - console.log('ho ho', staticId, hydratedId0, hydratedId1, clientOnlyId0, clientOnlyId1); expect(staticId).not.toEqual(hydratedId0); expect(hydratedId0).not.toEqual(hydratedId1); expect(hydratedId1).not.toEqual(clientOnlyId0); diff --git a/packages/astro/test/i18n-routing.test.js b/packages/astro/test/i18n-routing.test.js index 2c9b87813..52ebeda23 100644 --- a/packages/astro/test/i18n-routing.test.js +++ b/packages/astro/test/i18n-routing.test.js @@ -701,7 +701,6 @@ describe('[SSG] i18n routing', () => { it('should render the en locale', async () => { let html = await fixture.readFile('/index.html'); - let $ = cheerio.load(html); expect(html).to.include('http-equiv="refresh'); expect(html).to.include('Redirecting to: /en'); }); @@ -953,9 +952,8 @@ describe('[SSR] i18n routing', () => { it('should redirect to the english locale, which is the first fallback', async () => { let request = new Request('http://example.com/new-site/it/start'); let response = await app.render(request); - console.log(await response.text()); - // expect(response.status).to.equal(302); - // expect(response.headers.get('location')).to.equal('/new-site/start'); + expect(response.status).to.equal(302); + expect(response.headers.get('location')).to.equal('/new-site/start'); }); it("should render a 404 because the route `fr` isn't included in the list of locales of the configuration", async () => { diff --git a/packages/astro/test/parallel.js b/packages/astro/test/parallel.test.js index 22b76eda0..22b76eda0 100644 --- a/packages/astro/test/parallel.js +++ b/packages/astro/test/parallel.test.js diff --git a/packages/astro/test/ssr-split-manifest.test.js b/packages/astro/test/ssr-split-manifest.test.js index 89c8e00ef..74d2fe74e 100644 --- a/packages/astro/test/ssr-split-manifest.test.js +++ b/packages/astro/test/ssr-split-manifest.test.js @@ -109,7 +109,6 @@ describe('astro:ssr-manifest, split', () => { const request = new Request('http://example.com/'); const response = await app.render(request); const html = await response.text(); - console.log(html); expect(html.includes('<title>Testing</title>')).to.be.true; }); }); diff --git a/packages/astro/test/units/dev/dev.test.js b/packages/astro/test/units/dev/dev.test.js index 810d8d1c3..8f18839d6 100644 --- a/packages/astro/test/units/dev/dev.test.js +++ b/packages/astro/test/units/dev/dev.test.js @@ -199,7 +199,6 @@ describe('dev container', () => { container.handle(r.req, r.res); await r.done; const doc = await r.text(); - console.log(doc); expect(doc).to.match(/Regular page/); expect(r.res.statusCode).to.equal(200); } diff --git a/packages/astro/test/units/i18n/astro_i18n.js b/packages/astro/test/units/i18n/astro_i18n.test.js index f90ad14e6..63e2df833 100644 --- a/packages/astro/test/units/i18n/astro_i18n.js +++ b/packages/astro/test/units/i18n/astro_i18n.test.js @@ -636,6 +636,7 @@ describe('getLocaleAbsoluteUrl', () => { ...config.experimental.i18n, trailingSlash: 'never', format: 'directory', + site: 'https://example.com', }) ).to.eq('https://example.com/blog'); expect( @@ -645,6 +646,7 @@ describe('getLocaleAbsoluteUrl', () => { ...config.experimental.i18n, trailingSlash: 'always', format: 'directory', + site: 'https://example.com', }) ).to.eq('https://example.com/blog/es/'); @@ -655,6 +657,7 @@ describe('getLocaleAbsoluteUrl', () => { ...config.experimental.i18n, trailingSlash: 'ignore', format: 'directory', + site: 'https://example.com', }) ).to.eq('https://example.com/blog/'); @@ -666,6 +669,7 @@ describe('getLocaleAbsoluteUrl', () => { ...config.experimental.i18n, trailingSlash: 'never', format: 'file', + site: 'https://example.com', }) ).to.eq('https://example.com/blog'); expect( @@ -675,6 +679,7 @@ describe('getLocaleAbsoluteUrl', () => { ...config.experimental.i18n, trailingSlash: 'always', format: 'file', + site: 'https://example.com', }) ).to.eq('https://example.com/blog/es/'); @@ -686,6 +691,7 @@ describe('getLocaleAbsoluteUrl', () => { ...config.experimental.i18n, trailingSlash: 'ignore', format: 'file', + site: 'https://example.com', }) ).to.eq('https://example.com/blog'); }); diff --git a/packages/create-astro/test/typescript.test.js b/packages/create-astro/test/typescript.test.js index 498d3384b..461a3ed63 100644 --- a/packages/create-astro/test/typescript.test.js +++ b/packages/create-astro/test/typescript.test.js @@ -5,7 +5,6 @@ import { fileURLToPath } from 'node:url'; import { typescript, setupTypeScript } from '../dist/index.js'; import { setup, resetFixtures } from './utils.js'; -import { describe } from 'node:test'; describe('typescript', () => { const fixture = setup(); diff --git a/packages/integrations/mdx/test/mdx-slots.js b/packages/integrations/mdx/test/mdx-slots.test.js index f0557cc4a..f0557cc4a 100644 --- a/packages/integrations/mdx/test/mdx-slots.js +++ b/packages/integrations/mdx/test/mdx-slots.test.js diff --git a/packages/integrations/node/test/bad-urls.test.js b/packages/integrations/node/test/bad-urls.test.js index de7484b80..894729e36 100644 --- a/packages/integrations/node/test/bad-urls.test.js +++ b/packages/integrations/node/test/bad-urls.test.js @@ -2,7 +2,7 @@ import { expect } from 'chai'; import nodejs from '../dist/index.js'; import { loadFixture } from './test-utils.js'; -describe('API routes', () => { +describe('Bad URLs', () => { /** @type {import('./test-utils').Fixture} */ let fixture; let devPreview; diff --git a/packages/integrations/node/test/headers.test.js.js b/packages/integrations/node/test/headers.test.js index 17cfd3701..17cfd3701 100644 --- a/packages/integrations/node/test/headers.test.js.js +++ b/packages/integrations/node/test/headers.test.js |