aboutsummaryrefslogtreecommitdiff
path: root/test/anki-note-builder.test.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2023-12-16 19:52:00 -0500
committerGitHub <noreply@github.com>2023-12-17 00:52:00 +0000
commit77d27113d347b4724302f1c72de1f238e04aeead (patch)
tree1d9d5a8f2533778e98d662b8757f52a9533ed5f0 /test/anki-note-builder.test.js
parent64e4598b8cb59983fa21787550f68c562256fe67 (diff)
Fix DOM tests (#363)
* Only apply eslint rules to .test.js files * Fix tests * Use built-in environment * Fix tests * Optional file name * Remove environment
Diffstat (limited to 'test/anki-note-builder.test.js')
-rw-r--r--test/anki-note-builder.test.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/anki-note-builder.test.js b/test/anki-note-builder.test.js
index 96dacab6..50b66f18 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 <https://www.gnu.org/licenses/>.
*/
+// @vitest-environment jsdom
+
import 'fake-indexeddb/auto';
import fs from 'fs';
import {fileURLToPath} from 'node:url';