1 parent 2173c2c commit 9b2706dCopy full SHA for 9b2706d
1 file changed
packages/rstack/test/cli/staged/index.test.ts
@@ -1,6 +1,7 @@
1
import { execFileSync } from 'node:child_process';
2
import { mkdtemp, rm, writeFile } from 'node:fs/promises';
3
import path from 'node:path';
4
+import { stripVTControlCharacters } from 'node:util';
5
import { test } from '#test-helpers';
6
7
const git = (cwd: string, args: string[]): void => {
@@ -63,7 +64,7 @@ const withGitFixture = async (callback: (cwd: string) => Promise<void> | void):
63
64
};
65
66
test('should display the staged help message', ({ execCli, expect }) => {
- const output = execCli('staged --help');
67
+ const output = stripVTControlCharacters(execCli('staged --help'));
68
69
expect(output).toContain('Rstack v');
70
expect(output).toContain('Usage:\n $ rs staged [options]');
0 commit comments