Skip to content

Commit

Permalink
Update types for recently added template specs
Browse files Browse the repository at this point in the history
  • Loading branch information
cezaraugusto committed Sep 15, 2024
1 parent b744544 commit 15e4f70
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions examples/content-esm/template.spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {test as base, chromium} from '@playwright/test'
const exampleDir = 'examples/content-esm'
const pathToExtension = path.join(__dirname, `dist/chrome`)

// Define the types in comments for intellisense
/**
* @typedef {import('@playwright/test').BrowserContext} BrowserContext
*/
Expand All @@ -16,7 +15,7 @@ const extensionFixtures = (
) => {
return base.extend({
/** @type {() => Promise<BrowserContext>} */
context: async ({}, use) => {
context: async (_, use) => {
const context = await chromium.launchPersistentContext('', {
headless: false,
args: [
Expand Down
3 changes: 1 addition & 2 deletions examples/new-esm/template.spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {test as base, chromium} from '@playwright/test'
const exampleDir = 'examples/content-esm'
const pathToExtension = path.join(__dirname, `dist/chrome`)

// Define the types in comments for intellisense
/**
* @typedef {import('@playwright/test').BrowserContext} BrowserContext
*/
Expand All @@ -17,7 +16,7 @@ const extensionFixtures = (
) => {
return base.extend({
/** @type {() => Promise<BrowserContext>} */
context: async ({}, use) => {
context: async (_, use) => {
const context = await chromium.launchPersistentContext('', {
headless: false,
args: [
Expand Down
2 changes: 1 addition & 1 deletion programs/develop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"clean": "rm -rf dist",
"watch": "tsup-node ./module.ts --format cjs --dts --target=node18 --watch",
"compile": "tsup-node ./module.ts --format cjs --dts --target=node18 --minify && bash install_scripts.sh",
"test": "jest --no-cache --testPathPattern='webpack/.*/__spec__/.*\\.spec\\.ts'",
"test": "jest --no-cache --testPathPattern='webpack/.*/__spec__/.*\\.spec\\.*'",
"test:coverage": "jest --no-cache --testPathPattern='webpack/.*/__spec__/.*\\.spec\\.ts' --coverage",
"test:build": "jest ./build.spec.ts --no-cache"
},
Expand Down

0 comments on commit 15e4f70

Please sign in to comment.