MCPcopy
hub / github.com/vercel/next.js / removeRootMiddleware

Function removeRootMiddleware

test/integration/middleware-src/test/index.test.ts:69–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67}
68
69async function removeRootMiddleware() {
70 await fs.remove(rootMiddlewareJSFile, {
71 // @ts-expect-error
72 force: true,
73 })
74 await fs.remove(rootMiddlewareTSFile, {
75 // @ts-expect-error
76 force: true,
77 })
78 await fs.remove(join(appDir, 'pages'), {
79 // @ts-expect-error
80 force: true,
81 recursive: true,
82 })
83}
84
85describe.each([
86 {

Callers

nothing calls this directly

Calls 2

joinFunction · 0.90
removeMethod · 0.45

Tested by

no test coverage detected