CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-confusing-browser-globals

A curated list of browser globals that commonly cause confusion and are not recommended to use without an explicit window qualifier

Overall
score

97%

Overview
Eval results
Files

rubric.jsonevals/scenario-1/

{
  "context": "This criteria evaluates how well the engineer uses Jest's snapshot testing capabilities within a Create React App environment to verify React component rendering. It focuses on proper use of snapshot testing APIs, test structure, and handling different component states.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses toMatchSnapshot",
      "description": "Test file uses Jest's `toMatchSnapshot()` or `toMatchInlineSnapshot()` matcher to create and verify snapshots of the rendered component output",
      "max_score": 25
    },
    {
      "name": "Renders with Testing Library",
      "description": "Uses `@testing-library/react`'s `render()` function to render the component before capturing snapshots",
      "max_score": 20
    },
    {
      "name": "Complete data test",
      "description": "Implements a test that renders UserProfile with complete user data (name, email, role, and bio) and captures a snapshot",
      "max_score": 20
    },
    {
      "name": "Missing bio test",
      "description": "Implements a test that renders UserProfile without the bio field and captures a snapshot to verify conditional rendering",
      "max_score": 20
    },
    {
      "name": "Jest test blocks",
      "description": "Uses Jest's `test()` or `it()` functions to define test cases with descriptive names that clearly indicate snapshot testing purpose",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-confusing-browser-globals

tile.json