From 34c23da1011786e5c05952a10856039df32ef0db Mon Sep 17 00:00:00 2001 From: Alex Sheiko <61295121+Kelamir@users.noreply.github.com> Date: Wed, 1 Mar 2023 16:37:17 +0200 Subject: [PATCH] Remove ".ts" from import statement in Unit Testing guide Doing `import { createUser, updateUsername } from '../functions-without-context.ts'` results into the following error error: error TS2691: An import path cannot end with a '.ts' extension. Consider importing '../functions-without-context' instead. --- content/300-guides/150-testing/100-unit-testing.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/300-guides/150-testing/100-unit-testing.mdx b/content/300-guides/150-testing/100-unit-testing.mdx index 0cb0b4b5aa..fbe3b1456b 100644 --- a/content/300-guides/150-testing/100-unit-testing.mdx +++ b/content/300-guides/150-testing/100-unit-testing.mdx @@ -268,7 +268,7 @@ The **_singleton_** example uses the singleton client instance to call the mock ```ts -import { createUser, updateUsername } from './src/functions-without-context.ts' +import { createUser, updateUsername } from './src/functions-without-context' import { prismaMock } from './../singleton' test('should create new user ', async () => {