update typescript and fix test cases

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent 32c33f3ce8
commit ebaa318d54
4 changed files with 27 additions and 6 deletions

View File

@@ -4,6 +4,7 @@ import * as fs from 'fs';
import * as path from 'path';
import * as puppeteer from 'puppeteer';
import { expect } from 'chai';
import { Suite } from 'mocha';
import {
EventType,
eventWithTime,
@@ -113,7 +114,13 @@ interface IWindow extends Window {
};
}
describe('replayer', () => {
interface ISuite extends Suite {
code: string;
browser: puppeteer.Browser;
page: puppeteer.Page;
}
describe('replayer', function(this: ISuite) {
before(async () => {
this.browser = await puppeteer.launch({
headless: false,