koajs / koajs/send

add tests to confirm the behavior when `format` and `extensions` are conflicted

Open
#66 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
433
Forks
86
PR merge metrics
No merged PRs in 30d

Description

If we have the file structure below

```
/hello
/hello.html
/hello/index.html
```

with options

```js
{
index: 'index.html',
extensions: ['.html']
}
```

Contributor guide

Open the contributing guide

Research direction

No files or test paths are named. Start by locating the existing tests and the handling of `index` and `extensions`, then clarify the expected result for `/hello`, `/hello.html`, and `/hello/index.html` with the shown options. Done means tests explicitly cover the conflicting `format` and `extensions` behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend, testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.