summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/astro/package.json2
-rw-r--r--packages/astro/test/errors.test.js6
-rw-r--r--packages/astro/test/test-utils.js1
3 files changed, 5 insertions, 4 deletions
diff --git a/packages/astro/package.json b/packages/astro/package.json
index 14d75d617..683026041 100644
--- a/packages/astro/package.json
+++ b/packages/astro/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/packages/astro/test/errors.test.js b/packages/astro/test/errors.test.js
index 0bf7daaa5..3e09e8ad9 100644
--- a/packages/astro/test/errors.test.js
+++ b/packages/astro/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/packages/astro/test/test-utils.js b/packages/astro/test/test-utils.js
index d4f05040b..c6c641f0d 100644
--- a/packages/astro/test/test-utils.js
+++ b/packages/astro/test/test-utils.js
@@ -33,6 +33,7 @@ polyfill(globalThis, {
* @property {() => Promise<PreviewServer>} preview
* @property {() => Promise<void>} clean
* @property {() => Promise<App>} loadTestAdapterApp
+ * @property {() => Promise<void>} onNextChange
*/
/**