chore(vitest): fix node:test import

This commit is contained in:
Elian Doran 2026-01-02 00:03:45 +02:00
parent b6af3b70b0
commit 3f5616f1fc
No known key found for this signature in database
3 changed files with 3 additions and 9 deletions

View File

@ -1,6 +1,5 @@
import { describe } from "node:test";
import test, { BrowserContext, expect, Page } from "@playwright/test";
import { describe } from "vitest";
import App from "../support/app";

View File

@ -1,7 +1,5 @@
import { beforeEach } from "node:test";
import { trimIndentation } from "@triliumnext/commons";
import { describe, expect, it, vi } from "vitest";
import { beforeEach,describe, expect, it, vi } from "vitest";
import becca from "../becca/becca.js";
import BBranch from "../becca/entities/bbranch.js";
@ -12,8 +10,6 @@ import cls from "./cls.js";
import { buildJsx, executeBundle, getScriptBundle } from "./script.js";
describe("Script", () => {
let rootNote!: NoteBuilder;
beforeEach(() => {
becca.reset();

View File

@ -1,8 +1,7 @@
import { parseRangeHeader } from "./parseRangeHeader.js";
import type { Logger } from "./Logger.js";
import { RangeParserError } from "./RangeParserError.js";
import { describe, expect, it, vi } from "vitest";
import { afterEach, beforeEach } from "node:test";
import { describe, expect, it, vi, afterEach, beforeEach } from "vitest";
describe("parseRangeHeader tests", () => {
let logger: Logger;