Skip to content

Commit b6df016

Browse files
authored
chore(e2e/tests): assert on correct variable (#12494)
1 parent 7826a8f commit b6df016

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

e2e/__tests__/onlyChanged.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ test('run only changed files', () => {
105105
run(`${GIT} add .`, DIR);
106106
run(`${GIT} commit --no-gpg-sign -m "second"`, DIR);
107107

108-
({stderr} = runJest(DIR, ['-o']));
108+
({stdout} = runJest(DIR, ['-o']));
109109
expect(stdout).toMatch('No tests found related to files');
110110

111111
writeFiles(DIR, {
@@ -288,7 +288,7 @@ test('onlyChanged in config is overwritten by --all or testPathPattern', () => {
288288
run(`${GIT} add .`, DIR);
289289
run(`${GIT} commit --no-gpg-sign -m "second"`, DIR);
290290

291-
({stderr} = runJest(DIR));
291+
({stdout} = runJest(DIR));
292292
expect(stdout).toMatch('No tests found related to files');
293293

294294
({stderr, stdout} = runJest(DIR, ['file2.test.js']));
@@ -333,7 +333,7 @@ testIfHg('gets changed files for hg', async () => {
333333
let stdout;
334334
let stderr;
335335

336-
({stdout, stderr} = runJest(DIR, ['-o']));
336+
({stdout} = runJest(DIR, ['-o']));
337337
expect(stdout).toMatch('No tests found related to files changed');
338338

339339
writeFiles(DIR, {
@@ -342,7 +342,7 @@ testIfHg('gets changed files for hg', async () => {
342342
'file3.js': "require('./file2')",
343343
});
344344

345-
({stdout, stderr} = runJest(DIR, ['-o']));
345+
({stderr} = runJest(DIR, ['-o']));
346346
expect(stderr).toMatch(/PASS __tests__(\/|\\)file2.test.js/);
347347

348348
run(`${HG} add .`, DIR);

0 commit comments

Comments
 (0)