From 83ef2dc965b989c7d27069a5903d3efad6c44387 Mon Sep 17 00:00:00 2001 From: Ayushman Chhabra <14110965+ayushmanchhabra@users.noreply.github.com> Date: Sun, 14 Apr 2024 17:24:13 +0530 Subject: [PATCH] fix(test): jsdoc? --- js/puppeteer/puppeteer.test.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/js/puppeteer/puppeteer.test.js b/js/puppeteer/puppeteer.test.js index 014ce62..b1a8a96 100644 --- a/js/puppeteer/puppeteer.test.js +++ b/js/puppeteer/puppeteer.test.js @@ -1,11 +1,14 @@ import path from 'node:path'; import { findpath } from 'nw'; -import puppeteer from "puppeteer"; +import puppeteer, { Browser } from "puppeteer"; import { afterAll, beforeAll, describe, expect, it } from 'vitest'; describe('NW.js Puppeteer test suite', function () { + /** + * @type {Browser} + */ let browser = undefined; let page = undefined; @@ -19,9 +22,6 @@ describe('NW.js Puppeteer test suite', function () { headless: true, ignoreDefaultArgs: true, executablePath: nwPath, - env: { - DISPLAY: ':10', - }, /* Specify file path to NW.js app */ args: [`--nwapp=${path.resolve('js', 'puppeteer')}`], }); @@ -41,7 +41,7 @@ describe('NW.js Puppeteer test suite', function () { const text = await page.evaluate(el => el.textContent, textElement); expect(text).toEqual('Hello, World!\n\n'); - }); + }, { timeout: Infinity }); /* Quit Puppeteer browser. */ afterAll(async function () {