Skip to content

Unit Testing guide import has .ts in it, thus producing an error #4557

Description

@Kelamir

Referring to import { createUser, updateUsername } from './src/functions-without-context.ts' in https://github.com/prisma/docs/blob/main/content/300-guides/150-testing/100-unit-testing.mdx

error TS2691: An import path cannot end with a '.ts' extension. Consider importing '../functions-without-context' instead.

Metadata

Metadata

Assignees

Labels

type/docsDocumentation creation, updates or corrections

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions