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-9/

{
  "context": "This criteria evaluates the engineer's ability to use metro-memory-fs's truncateSync API to resize files. The focus is on correctly applying the truncate operation with proper parameters and understanding its behavior for expanding and shrinking files.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses truncateSync",
      "description": "Implementation calls fs.truncateSync() to resize the file",
      "max_score": 40
    },
    {
      "name": "Correct parameters",
      "description": "Passes the correct file path and target size to truncateSync (fs.truncateSync(filePath, targetSize))",
      "max_score": 30
    },
    {
      "name": "Returns file size",
      "description": "Returns the new size of the file after truncation (can use statSync to get size)",
      "max_score": 20
    },
    {
      "name": "Error handling",
      "description": "Allows errors from truncateSync to propagate (e.g., ENOENT for missing files)",
      "max_score": 10
    }
  ]
}

tile.json