playwrong
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Playwrong 🎭💥

A satirical test library that ensures every test fails by default. Why succeed when you can fail spectacularly? 🤡

Introduction 🚨

In a world obsessed with success, Playwrong invites you to embrace failure as a form of liberation. Inspired by the wisdom of Zen, Playwrong reminds us that attachment to outcomes—whether passing tests or meeting expectations—can be a source of unnecessary suffering.

By guaranteeing failure, Playwrong frees you from the illusion of control and the weight of ambition. Each failed test is an opportunity to let go, to laugh, and to remember: the journey is more important than the destination. 🌱

As the Zen master says: “Success is an illusion. Failure is a gift. Playwrong is inevitable.” 🧘‍♂️

Getting Started 🚀

Installation 📦

Install Playwrong using npm or yarn:

npm install playwrong

or

yarn add playwrong

Example 🛠️

Replace @playwright/test with playwrong in your tests to embrace failure: ❌

const { test, expect } = require('playwrong');

test('This test will fail', async ({ page }) => {
    await page.goto('https://example.com');
    expect(1).toBe(1); // But it will still fail. 💔
});

Output:

✖ This test will fail
   Error: This test failed because "playwrong" says so!

Features 🌟

  • Every test fails—no conditions, no questions. 💀
  • One simple message: "This test failed because 'playwrong' says so!" 📝
  • Zero configuration: Simple, clean, and guaranteed to disappoint. 🫠

Compatibility 🔧

Playwrong is built on top of Playwright. It supports the same environments:

  • 🌐 Chromium
  • 🦊 Firefox
  • 🍎 WebKit

To use Playwrong, ensure you have Playwright installed:

npm install @playwright/test

License 📜

Playwrong is licensed under the MIT License. See LICENSE for details.

Package Sidebar

Install

npm i playwrong

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

9.58 kB

Total Files

17

Last publish

Collaborators

  • ddnetters