Skip to content

Commit

Permalink
test: change server type for vite 5 change
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Nov 6, 2023
1 parent 978db3f commit 2828947
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/__tests__/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { createRequire } from "module";
import * as playwright from "playwright";
import { defaultNormalizer, defaultSerializer } from "@marko/fixture-snapshots";
import markoPlugin, { type Options } from "..";
import type { Http2SecureServer } from "http2";

// https://github.com/esbuild-kit/tsx/issues/113
const { toString } = Function.prototype;
Expand Down Expand Up @@ -202,7 +203,11 @@ for (const fixture of fs.readdirSync(FIXTURES)) {
});
}

async function testPage(dir: string, steps: Step[], server: http.Server) {
async function testPage(
dir: string,
steps: Step[],
server: http.Server | Http2SecureServer
) {
try {
if (!server.listening) await once(server, "listening");

Expand Down

0 comments on commit 2828947

Please sign in to comment.