Skip to content

Commit 1008c49

Browse files
committed
chore: adjust fixtures
1 parent 73f3242 commit 1008c49

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/compass-schema/src/utils.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ describe('compass-schema utils', function () {
3232
expect(
3333
getAtlasPerformanceAdvisorLink({
3434
metricsId: '123456',
35-
metricsType: 'host',
35+
metricsType: 'replicaSet',
3636
clusterName: 'Cluster0',
3737
})
38-
).to.equal('#/metrics/host/123456/advisor');
38+
).to.equal('#/metrics/replicaSet/123456/advisor');
3939
});
4040
it('encodes the parameters', function () {
4141
expect(

scripts/changed.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,15 @@ async function main() {
124124
const args = process.argv.slice(2);
125125
const interactive = args.includes('--interactive');
126126
const command = args.find((arg) => !arg.startsWith('-'));
127+
const since = args.includes('--force-all') ? '' : ' --since origin/HEAD';
127128

128129
/** @type {{ name: string }[]} */
129130
const changedPackages = await withProgress(
130131
'Looking up packages changed since origin/HEAD',
131132
async function () {
132133
const spinner = this;
133134
const { stdout } = await runInDir(
134-
'npx lerna list --all --since origin/HEAD --json --exclude-dependents'
135+
`npx lerna list --all${since} --json --exclude-dependents --toposort`
135136
);
136137
const result = JSON.parse(stdout);
137138
spinner.text =

0 commit comments

Comments
 (0)