Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"toolPackages": [
{
"packageName": "@microsoft/api-extractor",
"packageVersion": "7.52.8"
"packageVersion": "7.52.11"
}
]
}
10 changes: 10 additions & 0 deletions common/changes/@microsoft/rush/fix-tests_2025-08-31-02-01.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@microsoft/rush",
"comment": "",
"type": "none"
}
],
"packageName": "@microsoft/rush"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "",
"type": "none",
"packageName": "@rushstack/node-core-library"
}
],
"packageName": "@rushstack/node-core-library",
"email": "iclanton@users.noreply.github.com"
}
3 changes: 1 addition & 2 deletions libraries/node-core-library/src/test/FileSystem.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,9 @@ describe(FileSystem.name, () => {
});

test('Should return true for an error on a file descriptor call', () => {
const buffer: Buffer = Buffer.allocUnsafeSlow(1024);
expect.assertions(1);
try {
fs.readSync(11, buffer, 0, buffer.length, -1);
fs.readFileSync(`${__dirname}/nonexistent.txt`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iclanton , this test is now no longer testing the category of issue the description says it is.

} catch (error) {
expect(FileSystem.isErrnoException(error)).toBe(true);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ describe('RushCommandLineParser', () => {
afterEach(() => {
jest.clearAllMocks();
EnvironmentConfiguration.reset();
jest
.spyOn(EnvironmentConfiguration, 'buildCacheOverrideJsonFilePath', 'get')
.mockReturnValue(undefined);
jest.spyOn(EnvironmentConfiguration, 'buildCacheOverrideJson', 'get').mockReturnValue(undefined);
});

describe('in basic repo', () => {
Expand Down
Loading