Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
340d265
feat: add supporting code for workspace detection
sorccu Sep 30, 2025
cedea77
feat: add workspace support
sorccu Oct 22, 2025
772e294
refactor: remove weird walkUp helper in favor of the lineage helper
sorccu Oct 22, 2025
7ed31e4
fix: make TypeScript happy
sorccu Oct 24, 2025
685eb4f
fix: use basePath relative paths in the generated PW bundle
sorccu Oct 27, 2025
f6d47f0
fix: pnpm workspace detection used the wrong command, which did not a…
sorccu Oct 31, 2025
6770384
fix: make sure PW script paths are resolved to absolute paths
sorccu Oct 31, 2025
10a6677
refactor: make configDefaultGetter more generic so that it can work w…
sorccu Dec 11, 2025
01b1ebb
feat: tie it all together
sorccu Nov 10, 2025
3a288ee
chore: remove unused import
sorccu Dec 17, 2025
e31faf6
feat: make it optionally possible to skip bundle cleanup (allows insp…
sorccu Dec 17, 2025
b36d08b
feat: add debug logging to jiti and ts-node loaders
sorccu Dec 18, 2025
8e1a6cd
feat: enable tsx in the jiti loader
sorccu Dec 18, 2025
027d9ec
feat: allow dependency collection from JSX files
sorccu Dec 18, 2025
7632c5b
fix: jsx must only be enabled when the extension matches
sorccu Dec 18, 2025
48d4401
chore: fix most unit tests by using fixtures in isolation
sorccu Jan 7, 2026
ef81abf
chore: add a workspace fixture to help debug pnpm related issues
sorccu Jan 9, 2026
a448d7f
fix: generate a placeholder package.json for unused deps needed durin…
sorccu Jan 21, 2026
9c85979
feat: use the new workingDir for playwright checks
sorccu Jan 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "workspace-basic-pnpm",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"packageManager": "pnpm@10.7.1"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

# Playwright
node_modules/
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
/playwright/.auth/
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { defineConfig } from 'checkly'

const config = defineConfig({
logicalId: 'my-app',
projectName: 'my-app',
checks: {
playwrightConfigPath: './playwright.config.ts',
playwrightChecks: [
{
logicalId: 'my-app-tests',
name: 'my-app-tests',
frequency: 10,
locations: [
'us-east-1',
],
installCommand: 'pnpm i',
},
],
frequency: 10,
locations: [
'us-east-1',
],
},
cli: {
runLocation: 'us-east-1',
},
})

export default config
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "a",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {},
"keywords": [],
"author": "",
"license": "ISC",
"packageManager": "pnpm@10.7.1",
"dependencies": {
"b": "workspace:*"
},
"devDependencies": {
"@playwright/test": "^1.57.0",
"@types/node": "^25.0.3",
"checkly": "^6.9.8",
"jiti": "^2.6.1"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
import { defineConfig, devices } from '@playwright/test';

/**
* Read environment variables from file.
* https://github.com/motdotla/dotenv
*/
// import dotenv from 'dotenv';
// import path from 'path';
// dotenv.config({ path: path.resolve(__dirname, '.env') });

/**
* See https://playwright.dev/docs/test-configuration.
*/
export default defineConfig({
testDir: './tests',
/* Run tests in files in parallel */
fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: 'html',
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('')`. */
// baseURL: 'http://localhost:3000',

/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
},

/* Configure projects for major browsers */
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},

{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },
},

{
name: 'webkit',
use: { ...devices['Desktop Safari'] },
},

/* Test against mobile viewports. */
// {
// name: 'Mobile Chrome',
// use: { ...devices['Pixel 5'] },
// },
// {
// name: 'Mobile Safari',
// use: { ...devices['iPhone 12'] },
// },

/* Test against branded browsers. */
// {
// name: 'Microsoft Edge',
// use: { ...devices['Desktop Edge'], channel: 'msedge' },
// },
// {
// name: 'Google Chrome',
// use: { ...devices['Desktop Chrome'], channel: 'chrome' },
// },
],

/* Run your local dev server before starting the tests */
// webServer: {
// command: 'npm run start',
// url: 'http://localhost:3000',
// reuseExistingServer: !process.env.CI,
// },
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { test, expect } from '@playwright/test';

test('has title', async ({ page }) => {
await page.goto('https://playwright.dev/');

// Expect a title "to contain" a substring.
await expect(page).toHaveTitle(/Playwright/);
});

test('get started link', async ({ page }) => {
await page.goto('https://playwright.dev/');

// Click the get started link.
await page.getByRole('link', { name: 'Get started' }).click();

// Expects page to have a heading with the name of Installation.
await expect(page.getByRole('heading', { name: 'Installation' })).toBeVisible();
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "b",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"packageManager": "pnpm@10.7.1",
"dependencies": {
"c": "workspace:*"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "c",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"packageManager": "pnpm@10.7.1"
}
Loading
Loading