MCPcopy
hub / github.com/prisma/prisma / clearPromptInjection

Function clearPromptInjection

packages/migrate/src/__tests__/MigrateDev.test.ts:44–55  ·  view source on GitHub ↗
(position: string)

Source from the content-addressed store, hash-verified

42// developer's time. This is why we should not rely on such global objects
43// if possible.
44function clearPromptInjection(position: string): void {
45 if (!prompt || !prompt._injected) return
46
47 const count = prompt._injected.length
48 if (!count) return
49
50 process.stdout.write(
51 `WARNING: Clearing ${count} prompt injection(s) ${position} test case\n: ${prompt._injected.join(', ')}`,
52 )
53
54 prompt._injected.splice(0, count)
55}
56
57describe('prisma.config.ts', () => {
58 it('should require a datasource in the config', async () => {

Callers 1

MigrateDev.test.tsFile · 0.85

Calls 1

writeMethod · 0.65

Tested by

no test coverage detected