Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore: move protocol to d.ts types only files (#34077)
Max Schmitt4c9a116aff04
diff --git a/packages/protocol/src/callMetadata.ts b/packages/protocol/src/callMetadata.d.tssimilarity index 100%rename from packages/protocol/src/callMetadata.tsrename to packages/protocol/src/callMetadata.d.tsdiff --git a/packages/protocol/src/channels.ts b/packages/protocol/src/channels.d.tssimilarity index 100%rename from packages/protocol/src/channels.tsrename to packages/protocol/src/channels.d.tsdiff --git a/utils/generate_channels.js b/utils/generate_channels.jsindex 9da221f97e..0bebcbba0c 100755--- a/utils/generate_channels.js+++ b/utils/generate_channels.js@@ -362,7 +362,7 @@ function writeFile(filePath, content) {fs.writeFileSync(filePath, content, 'utf8');}-writeFile(path.join(__dirname, '..', 'packages', 'protocol', 'src', 'channels.ts'), channels_ts.join('\n'));+writeFile(path.join(__dirname, '..', 'packages', 'protocol', 'src', 'channels.d.ts'), channels_ts.join('\n'));writeFile(path.join(__dirname, '..', 'packages', 'playwright-core', 'src', 'protocol', 'debug.ts'), debug_ts.join('\n'));writeFile(path.join(__dirname, '..', 'packages', 'playwright-core', 'src', 'protocol', 'validator.ts'), validator_ts.join('\n'));process.exit(hasChanges ? 1 : 0);