Skip to content

Commit

Permalink
Fix an issue with StringBufferTerminalProvider's 'normalizeSpecialCha…
Browse files Browse the repository at this point in the history
…racters' option.
  • Loading branch information
iclanton committed May 25, 2024
1 parent fd1e8f5 commit ffb6427
Show file tree
Hide file tree
Showing 4 changed files with 288 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@rushstack/terminal",
"comment": "Change the `eolCharacter` property value of `StringBufferTerminalProvider` to `\\n` from `[n]`. This does not change the default `getOutput()` result, but removes the `[n]` characters from the `getOutput({ normalizeSpecialCharacters: false })` result.",
"type": "minor"
}
],
"packageName": "@rushstack/terminal"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
// See LICENSE in the project root for license information.

import { MockWritable, StringBufferTerminalProvider, Terminal } from '@rushstack/terminal';
import { JsonFile } from '@rushstack/node-core-library';
import { StreamCollator } from '@rushstack/stream-collator';
import { BuildPlanPlugin } from '../BuildPlanPlugin';
import {
type ICreateOperationsContext,
type IExecuteOperationsContext,
PhasedCommandHooks
} from '../../../pluginFramework/PhasedCommandHooks';
import { StreamCollator } from '@rushstack/stream-collator';
import type { Operation } from '../Operation';
import { RushConfiguration } from '../../../api/RushConfiguration';
import {
Expand All @@ -24,7 +25,6 @@ import { MockOperationRunner } from './MockOperationRunner';
import { ProjectChangeAnalyzer } from '../../ProjectChangeAnalyzer';
import path from 'path';
import type { ICommandLineJson } from '../../../api/CommandLineJson';
import { JsonFile } from '@rushstack/node-core-library';

describe(BuildPlanPlugin.name, () => {
const rushJsonFile: string = path.resolve(__dirname, `../../test/workspaceRepo/rush.json`);
Expand Down

0 comments on commit ffb6427

Please sign in to comment.