From 81854a8527d5ec48ca51879e311e03771e5bc1c0 Mon Sep 17 00:00:00 2001 From: BIKI DAS Date: Fri, 28 Jan 2022 14:44:38 +0530 Subject: [PATCH] chore: Fix typo in tests (#12255) --- e2e/__tests__/__snapshots__/listTests.test.ts.snap | 6 +++--- e2e/__tests__/listTests.test.ts | 2 +- e2e/__tests__/transform.test.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/e2e/__tests__/__snapshots__/listTests.test.ts.snap b/e2e/__tests__/__snapshots__/listTests.test.ts.snap index 3c12f33eab07..45e85ad0206a 100644 --- a/e2e/__tests__/__snapshots__/listTests.test.ts.snap +++ b/e2e/__tests__/__snapshots__/listTests.test.ts.snap @@ -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"]`; diff --git a/e2e/__tests__/listTests.test.ts b/e2e/__tests__/listTests.test.ts index 66ff464681e3..a10bae735eed 100644 --- a/e2e/__tests__/listTests.test.ts +++ b/e2e/__tests__/listTests.test.ts @@ -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('/'); diff --git a/e2e/__tests__/transform.test.ts b/e2e/__tests__/transform.test.ts index 5e088066e7d7..2d2e67c7ce2e 100644 --- a/e2e/__tests__/transform.test.ts +++ b/e2e/__tests__/transform.test.ts @@ -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__/);