From 51d6c467bb942251c463f610e2b5c014021ad580 Mon Sep 17 00:00:00 2001 From: Han Feng Date: Wed, 2 Aug 2023 18:57:27 +0800 Subject: [PATCH] chore: convert to js file --- .gitattributes | 2 +- ...ndicator-position.test.ts => indicator-position.test.js} | 0 test/reporters/tests/indicator-position.test.ts | 6 +++--- 3 files changed, 4 insertions(+), 4 deletions(-) rename test/reporters/fixtures/{indicator-position.test.ts => indicator-position.test.js} (100%) diff --git a/.gitattributes b/.gitattributes index baf5ce686376..e5f95a846e74 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,3 @@ * text=auto eol=lf -test/reporters/fixtures/indicator-position.test.ts eol=crlf +test/reporters/fixtures/indicator-position.test.js eol=crlf diff --git a/test/reporters/fixtures/indicator-position.test.ts b/test/reporters/fixtures/indicator-position.test.js similarity index 100% rename from test/reporters/fixtures/indicator-position.test.ts rename to test/reporters/fixtures/indicator-position.test.js diff --git a/test/reporters/tests/indicator-position.test.ts b/test/reporters/tests/indicator-position.test.ts index dea3476b70df..d3a4d8775232 100644 --- a/test/reporters/tests/indicator-position.test.ts +++ b/test/reporters/tests/indicator-position.test.ts @@ -4,7 +4,7 @@ import { resolve } from 'pathe' import { runVitest } from '../../test-utils' test('should print correct indicator position', async () => { - const filename = resolve('./fixtures/indicator-position.test.ts') + const filename = resolve('./fixtures/indicator-position.test.js') const { stderr } = await runVitest({ root: './fixtures' }, [filename]) const code = readFileSync(filename, 'utf-8') @@ -13,7 +13,7 @@ test('should print correct indicator position', async () => { expect(stderr).toMatchInlineSnapshot(` "⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯ - FAIL indicator-position.test.ts > + FAIL indicator-position.test.js > AssertionError: expected 2 to be 3 // Object.is equality - Expected @@ -22,7 +22,7 @@ test('should print correct indicator position', async () => { - 3 + 2 - ❯ indicator-position.test.ts:12:17 + ❯ indicator-position.test.js:12:17 10| 11| test('', async () => { 12| expect(1 + 1).toBe(3)