CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-metro-memory-fs

A memory-based implementation of Node.js fs module for testing purposes

96

1.26x
Quality

Pending

Does it follow best practices?

Impact

96%

1.26x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.jsonevals/scenario-1/

{
  "context": "This evaluation assesses how well the engineer uses metro-memory-fs's directory listing functionality (readdirSync) to implement the directory content reading utility. The focus is on proper usage of the package's API to read directory contents.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses readdirSync",
      "description": "The listDirectoryContents function uses fs.readdirSync() to read directory entries",
      "max_score": 40
    },
    {
      "name": "Returns directory entries",
      "description": "The implementation correctly returns the array of entry names from readdirSync without unnecessary transformation",
      "max_score": 20
    },
    {
      "name": "Reuses readdirSync for counting",
      "description": "The countEntriesInDirectory function uses fs.readdirSync() and returns the length of the resulting array",
      "max_score": 25
    },
    {
      "name": "Error handling",
      "description": "Errors from readdirSync (such as ENOENT for non-existent directories) are allowed to propagate naturally without suppression",
      "max_score": 15
    }
  ]
}

tile.json