A curated list of browser globals that commonly cause confusion and are not recommended to use without an explicit window qualifier
Overall
score
97%
{
"context": "This criteria evaluates how effectively an engineer uses the connect package to build a development server with SPA routing fallback. The focus is on proper usage of connect's middleware system for serving static files and implementing fallback logic.",
"type": "weighted_checklist",
"checklist": [
{
"name": "connect() usage",
"description": "Uses connect() to create the app/server instance",
"max_score": 15
},
{
"name": "serveStatic middleware",
"description": "Uses connect's serveStatic (or serve-static) middleware to serve static files from the public directory",
"max_score": 30
},
{
"name": "Fallback middleware",
"description": "Implements custom middleware that serves index.html for non-static routes, placed after the serveStatic middleware",
"max_score": 30
},
{
"name": "Middleware ordering",
"description": "Correctly orders middleware so static files are checked first, then fallback is applied",
"max_score": 15
},
{
"name": "Server listening",
"description": "Uses app.listen() to start the server on the configured port",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-confusing-browser-globalsdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10