Home / Function/ cleanupCypressFiles() — ui Function Reference

cleanupCypressFiles() — ui Function Reference

Architecture documentation for the cleanupCypressFiles() function in index.js from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  e772ec97_eef3_3fcc_2141_63faa6278954["cleanupCypressFiles()"]
  5b238b2a_3145_ab1b_7b04_128e9652c323["index.js"]
  e772ec97_eef3_3fcc_2141_63faa6278954 -->|defined in| 5b238b2a_3145_ab1b_7b04_128e9652c323
  06dc8a86_19b9_54a6_9bbc_54e7751a3d49["main()"]
  06dc8a86_19b9_54a6_9bbc_54e7751a3d49 -->|calls| e772ec97_eef3_3fcc_2141_63faa6278954
  style e772ec97_eef3_3fcc_2141_63faa6278954 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/shadcn/test/fixtures/frameworks/remix-indie-stack/remix.init/index.js lines 10–18

const cleanupCypressFiles = ({ fileEntries, packageManager }) =>
  fileEntries.flatMap(([filePath, content]) => {
    const newContent = content.replace(
      new RegExp("npx ts-node", "g"),
      packageManager.name === "bun" ? "bun" : `${packageManager.exec} ts-node`,
    );

    return [fs.writeFile(filePath, newContent)];
  });

Subdomains

Called By

Frequently Asked Questions

What does cleanupCypressFiles() do?
cleanupCypressFiles() is a function in the ui codebase, defined in packages/shadcn/test/fixtures/frameworks/remix-indie-stack/remix.init/index.js.
Where is cleanupCypressFiles() defined?
cleanupCypressFiles() is defined in packages/shadcn/test/fixtures/frameworks/remix-indie-stack/remix.init/index.js at line 10.
What calls cleanupCypressFiles()?
cleanupCypressFiles() is called by 1 function(s): main.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free