Skip to content

Commit

Permalink
chore: Fix typo in tests (#12255)
Browse files Browse the repository at this point in the history
  • Loading branch information
Biki-das authored Jan 28, 2022
1 parent a7e73d2 commit 81854a8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions e2e/__tests__/__snapshots__/listTests.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`--listTests flag causes tests to be printed in different lines 1`] = `
/MOCK_ABOLUTE_PATH/e2e/list-tests/__tests__/dummy.test.js
/MOCK_ABOLUTE_PATH/e2e/list-tests/__tests__/other.test.js
/MOCK_ABSOLUTE_PATH/e2e/list-tests/__tests__/dummy.test.js
/MOCK_ABSOLUTE_PATH/e2e/list-tests/__tests__/other.test.js
`;

exports[`--listTests flag causes tests to be printed out as JSON when using the --json flag 1`] = `["/MOCK_ABOLUTE_PATH/e2e/list-tests/__tests__/dummy.test.js","/MOCK_ABOLUTE_PATH/e2e/list-tests/__tests__/other.test.js"]`;
exports[`--listTests flag causes tests to be printed out as JSON when using the --json flag 1`] = `["/MOCK_ABSOLUTE_PATH/e2e/list-tests/__tests__/dummy.test.js","/MOCK_ABSOLUTE_PATH/e2e/list-tests/__tests__/other.test.js"]`;
2 changes: 1 addition & 1 deletion e2e/__tests__/listTests.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const testRootDir = path.resolve(__dirname, '..', '..');
const normalizePaths = (rawPaths: string) =>
rawPaths
.split(testRootDir)
.join(`${path.sep}MOCK_ABOLUTE_PATH`)
.join(`${path.sep}MOCK_ABSOLUTE_PATH`)
.split('\\')
.join('/');

Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/transform.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ describe('custom transformer', () => {
'transform/custom-instrumenting-preprocessor',
);

it('proprocesses files', () => {
it('preprocesses files', () => {
const {json, stderr} = runWithJson(dir, ['--no-cache']);
expect(stderr).toMatch(/FAIL/);
expect(stderr).toMatch(/instruments by setting.*global\.__INSTRUMENTED__/);
Expand Down

0 comments on commit 81854a8

Please sign in to comment.