diff --git a/test/anki-note-builder.test.js b/test/anki-note-builder.test.js index 96dacab6a0..50b66f1802 100644 --- a/test/anki-note-builder.test.js +++ b/test/anki-note-builder.test.js @@ -16,6 +16,8 @@ * along with this program. If not, see . */ +// @vitest-environment jsdom + import 'fake-indexeddb/auto'; import fs from 'fs'; import {fileURLToPath} from 'node:url'; diff --git a/vitest.config.js b/vitest.config.js index 025eec1727..b0d1e4e340 100644 --- a/vitest.config.js +++ b/vitest.config.js @@ -23,7 +23,6 @@ export default defineConfig({ 'dev/lib/**', 'test/playwright/**' ], - environment: 'jsdom', // @ts-expect-error - Appears to not be defined in the type definitions (https://vitest.dev/advanced/pool) poolOptions: { threads: {