Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
import { nextTestSetup } from 'e2e-utils'
describe('adapter-config', () => {
const { next } = nextTestSetup({
files: __dirname,
})
it('should apply modifyConfig from adapter', async () => {
// we apply basePath /docs so ensure that applied
const res = await next.fetch('/')
expect(res.status).toBe(404)
const res2 = await next.fetch('/docs')
expect(res2.status).toBe(200)
expect(await res2.text()).toContain('hello world')
expect(next.cliOutput).toContain('called modify config in adapter')
})
})