Skip to content

Commit

Permalink
Create ConsoleOutputTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Nov 12, 2023
1 parent af25590 commit 2f62018
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/realtime-compiler/tests/ConsoleOutputTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

use Symfony\Component\Console\Output\BufferedOutput;
use Termwind\Repositories\Styles;

use function Termwind\{renderUsing};

beforeEach(function () {
renderUsing($this->output = new BufferedOutput());
});

afterEach(function () {
renderUsing(null);

Styles::flush();
});

0 comments on commit 2f62018

Please sign in to comment.