Skip to content

Commit 08b29c9

Browse files
chore(deps): update dependency prettier to v3 and eslint-plugin-pretter to 5.0.0 (#4268)
* chore(deps): update dependency prettier to v3 * chore(deps): update dependency eslint-plugin-prettier to 5.0.0 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: julieg18 <[email protected]>
1 parent f2b931a commit 08b29c9

File tree

16 files changed

+150
-59
lines changed

16 files changed

+150
-59
lines changed

extension/src/experiments/model/tree.test.ts

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -533,20 +533,19 @@ describe('ExperimentsTree', () => {
533533

534534
it('should return a tree item for the workspace', () => {
535535
let mockedItem = {}
536-
mockedTreeItem.mockImplementationOnce(function (
537-
resourceUri,
538-
collapsibleState
539-
) {
540-
expect(collapsibleState).toStrictEqual(0)
541-
expect(resourceUri).toStrictEqual(
542-
getDecoratableUri(
543-
EXPERIMENT_WORKSPACE_ID,
544-
DecoratableTreeItemScheme.EXPERIMENTS
536+
mockedTreeItem.mockImplementationOnce(
537+
function (resourceUri, collapsibleState) {
538+
expect(collapsibleState).toStrictEqual(0)
539+
expect(resourceUri).toStrictEqual(
540+
getDecoratableUri(
541+
EXPERIMENT_WORKSPACE_ID,
542+
DecoratableTreeItemScheme.EXPERIMENTS
543+
)
545544
)
546-
)
547-
mockedItem = { collapsibleState, resourceUri }
548-
return mockedItem
549-
})
545+
mockedItem = { collapsibleState, resourceUri }
546+
return mockedItem
547+
}
548+
)
550549
mockedThemeIcon.mockImplementationOnce(function (id) {
551550
return { id }
552551
})

extension/src/plots/model/custom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,4 @@ export const createSpec = (title: string, metric: string, param: string) =>
118118
}
119119
],
120120
width: 'container'
121-
} as VisualizationSpec)
121+
}) as VisualizationSpec

extension/src/plots/paths/model.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe('PathsModel', () => {
2020
getCliError: () => undefined,
2121
getPathErrors: () => undefined,
2222
hasCliError: () => undefined
23-
} as unknown as ErrorsModel)
23+
}) as unknown as ErrorsModel
2424

2525
it('should return the expected paths when given the default output fixture', () => {
2626
const comparisonType = new Set([PathType.COMPARISON])

extension/src/plots/paths/tree.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe('PlotsPathsTree', () => {
2929
it('should return the correct children for multi source plots (encoding elements)', () => {
3030
const mockedWorkspacePlots = {
3131
getRepository: () =>
32-
({ getChildPaths: mockedGetChildPaths } as unknown as Plots),
32+
({ getChildPaths: mockedGetChildPaths }) as unknown as Plots,
3333
pathsChanged: buildMockedEventEmitter()
3434
} as unknown as WorkspacePlots
3535
const mockedInternalCommands = {

extension/src/plots/vega/util.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ describe('extendVegaSpec', () => {
144144
...layers.slice(1)
145145
],
146146
title
147-
} as TopLevelSpec)
147+
}) as TopLevelSpec
148148

149149
it('should truncate all titles from the left to 50 characters for large plots', () => {
150150
const spec = withLongTemplatePlotTitle()

extension/src/test/fixtures/plotsDiff/index.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -488,11 +488,12 @@ const extendedSpecs = (plotsOutput: TemplatePlots): TemplatePlotSection[] => {
488488
...originalPlot.content,
489489
data: {
490490
values:
491-
REVISIONS.flatMap(revision =>
492-
originalPlot.datapoints?.[revision].map(values => ({
493-
...values,
494-
rev: revision
495-
}))
491+
REVISIONS.flatMap(
492+
revision =>
493+
originalPlot.datapoints?.[revision].map(values => ({
494+
...values,
495+
rev: revision
496+
}))
496497
) || []
497498
}
498499
} as TopLevelSpec,

extension/src/test/suite/cli/index.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ suite('CLI Suite', () => {
2727
const options = getOptions('child')
2828
const child = createProcess(options)
2929

30-
const stdout = await new Promise<string>(resolve =>
31-
child.all?.on('data', chunk => resolve(chunk.toString().trim()))
30+
const stdout = await new Promise<string>(
31+
resolve =>
32+
child.all?.on('data', chunk => resolve(chunk.toString().trim()))
3233
)
3334

3435
const childPid = createValidInteger(child.pid) as number

extension/src/test/suite/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export const buildMockExperimentsData = (update = stub()) =>
188188
onDidUpdate: stub(),
189189
setBranches: stub(),
190190
update
191-
} as unknown as ExperimentsData)
191+
}) as unknown as ExperimentsData
192192

193193
const buildResourceLocator = (disposer: Disposer): ResourceLocator =>
194194
disposer.track(new ResourceLocator(extensionUri))

extension/src/test/util/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ export const buildMockMemento = (
2020
values[key] = value
2121
void Promise.resolve()
2222
}
23-
} as unknown as Memento)
23+
}) as unknown as Memento

extension/src/test/util/jest/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ export const getMockedProcess = (stdout: string): Process =>
88
all: { on: jest.fn() },
99
on: jest.fn(),
1010
stdout: new Promise(resolve => resolve(stdout))
11-
} as unknown as Process)
11+
}) as unknown as Process
1212

1313
export const getFailingMockedProcess = (stderr: string): Process =>
1414
({
1515
on: jest.fn(),
1616
// eslint-disable-next-line promise/param-names
1717
stdout: new Promise((_, reject) => reject(new Error(stderr)))
18-
} as unknown as Process)
18+
}) as unknown as Process
1919

2020
export const buildMockedEventEmitter = <T = void>() => {
2121
const mockedEmitter = jest.mocked(new EventEmitter<T>())
@@ -55,7 +55,7 @@ export const buildMockedExperiments = () => {
5555
getSorts: mockedGetSorts,
5656
getSummaryColumnOrder: mockedGetSummaryColumnOrder,
5757
getWorkspaceAndCommits: mockedGetWorkspaceAndCommits
58-
} as unknown as Experiments),
58+
}) as unknown as Experiments,
5959
isReady: () => true
6060
} as unknown as WorkspaceExperiments
6161

0 commit comments

Comments
 (0)