Skip to content

Commit

Permalink
chore(e2e/tests): assert on correct variable (#12494)
Browse files Browse the repository at this point in the history
  • Loading branch information
Biki-das committed Feb 26, 2022
1 parent 7826a8f commit b6df016
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions e2e/__tests__/onlyChanged.test.ts
Expand Up @@ -105,7 +105,7 @@ test('run only changed files', () => {
run(`${GIT} add .`, DIR);
run(`${GIT} commit --no-gpg-sign -m "second"`, DIR);

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

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

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

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

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

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

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

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

0 comments on commit b6df016

Please sign in to comment.