diff --git a/spec/_vitest_runner/vitest.config.ts b/spec/_vitest_runner/vitest.config.ts index 55c121ce38..b007429110 100644 --- a/spec/_vitest_runner/vitest.config.ts +++ b/spec/_vitest_runner/vitest.config.ts @@ -24,7 +24,7 @@ export default defineConfig({ // Run test *files* in parallel across workers... fileParallelism: true, isolate: true, - // ...but keep tests *within* a file sequential, matching current mocha behaviour. + // ...but keep tests *within* a file sequential. sequence: { concurrent: false }, allowOnly: !process.env.CI, retry: process.env.CI ? 3 : 0, diff --git a/spec/fixtures/apps/refresh-page/main.html b/spec/fixtures/apps/refresh-page/main.html index 5aceb68b7b..ff328c21ad 100644 --- a/spec/fixtures/apps/refresh-page/main.html +++ b/spec/fixtures/apps/refresh-page/main.html @@ -1,9 +1,9 @@
- - + + diff --git a/spec/fixtures/apps/refresh-page/main.js b/spec/fixtures/apps/refresh-page/main.js index f94578648e..e1ba29d72f 100644 --- a/spec/fixtures/apps/refresh-page/main.js +++ b/spec/fixtures/apps/refresh-page/main.js @@ -25,8 +25,8 @@ app.once('ready', async () => { protocol.handle('atom', (request) => { let { pathname } = new URL(request.url); - if (pathname === '/mocha.js') { - pathname = path.resolve(__dirname, '../../../node_modules/mocha/mocha.js'); + if (pathname === '/chai.js') { + pathname = path.resolve(__dirname, '../../../node_modules/chai/chai.js'); } else { pathname = path.join(__dirname, pathname); } diff --git a/spec/lib/spec-helpers.ts b/spec/lib/spec-helpers.ts index 72e17a74d8..d66678d450 100644 --- a/spec/lib/spec-helpers.ts +++ b/spec/lib/spec-helpers.ts @@ -19,7 +19,7 @@ export const ifdescribe = (condition: boolean) => describe.runIf(condition); type DoneCallback = (err?: unknown) => void; /** - * Adapts a mocha-style callback test (receiving a `done` function) into a + * Adapts a callback-style test (receiving a `done` function) into a * vitest-compatible test that returns a Promise. `done()` resolves, * `done(err)` rejects. */