uppy/packages/@uppy/dashboard/src/setup.ts
Prakash ec75d863ec
@uppy/provider-views: add e2e tests for Server side search (#6015)
Tests added as discussed in
[slack_discussion](https://transloadit.slack.com/archives/C0FMW9PSB/p1759931999124149?thread_ts=1759700542.941939&cid=C0FMW9PSB)

directory structure mocked : 

```
root/ 
├── first/
│   ├── second/
│   │   ├── third/
│   │   │   ├── nested-target.pdf
│   │   │   └── new-file.pdf
│   │   ├── deep-file.txt
│   │   ├── target.pdf
│   │   └── workspace.pdf
│   └── intermediate.doc
├── workspace/
│   └── project/
│       └── code.js
└── readme.md

```

Some of the mocked responses in CompanionHandler.ts aren’t used in the
tests, but I’ve kept them to preserve the legitimacy of the above
directory structure.
2025-11-07 16:50:57 +05:30

4 lines
150 B
TypeScript

import { setupWorker } from 'msw/browser'
import { handlers } from '../src/mocks/CompanionHandler.js'
export const worker = setupWorker(...handlers)