Migration Guide: Upgrading to Playmatic 0.1.0
Overview
Playmatic 0.1.0 introduces a new environment-based configuration system with breaking changes. This guide will help you migrate your existing tests and configuration.⚠️ Breaking Changes
1. Configuration File Format
- Old:
playmatic.config.json(located in yourplaymatic-testsfolder) - New:
playmatic.config.ts
2. Test Function Signature
- Old:
test("name", () => { ... }) - New:
test("name", ({ env }) => { ... })
3. Environment Variables
- All environment variables in the new format are automatically available to the computer use agent
🛠️ Migration Steps
Step 1: Updates in your repo
Update yourpackage.json in your repo:
playmatic-tests folder):
playmatic-tests folder:
playmatic.config.ts: