diff --git a/package.json b/package.json index 14d75d617278..683026041515 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "dev": "astro-scripts dev \"src/**/*.ts\"", "postbuild": "astro-scripts copy \"src/**/*.astro\"", "benchmark": "node test/benchmark/dev.bench.js && node test/benchmark/build.bench.js", - "test": "mocha --exit --timeout 20000 --ignore **/lit-element.test.js && mocha --timeout 20000 **/lit-element.test.js", + "test": "mocha --exit --timeout 20000 --ignore **/lit-element.test.js --ignore **/errors.test.js && mocha --timeout 20000 **/lit-element.test.js && mocha --timeout 20000 **/errors.test.js", "test:match": "mocha --timeout 20000 -g", "test:e2e": "playwright test e2e" }, diff --git a/test/errors.test.js b/test/errors.test.js index 0bf7daaa5a0d..3e09e8ad9db3 100644 --- a/test/errors.test.js +++ b/test/errors.test.js @@ -5,6 +5,7 @@ import * as cheerio from 'cheerio'; describe('Error display', () => { if (isWindows) return; + /** @type {import('./test-utils').Fixture} */ let fixture; let devServer; @@ -32,7 +33,7 @@ describe('Error display', () => { }); }); - describe('Framework components', () => { + describe('Framework components', function() { let devServer; before(async () => { @@ -43,8 +44,7 @@ describe('Error display', () => { await devServer.stop(); }); - // Skip until https://github.com/withastro/astro/pull/3376 is revisited - it.skip('Errors recover when fixed', async () => { + it('Errors recover when fixed', async () => { let html = await fixture.fetch('/svelte-syntax-error').then((res) => res.text()); // 1. Verify an error message is being shown. diff --git a/test/test-utils.js b/test/test-utils.js index d4f05040beeb..c6c641f0dcbd 100644 --- a/test/test-utils.js +++ b/test/test-utils.js @@ -33,6 +33,7 @@ polyfill(globalThis, { * @property {() => Promise} preview * @property {() => Promise} clean * @property {() => Promise} loadTestAdapterApp + * @property {() => Promise} onNextChange */ /**