import app from '../src/index'
import { env } from 'cloudflare:test'
import { expect, describe, it } from 'vitest'
describe('Test the application', () => {
it('Should return 200 response', async () => {
const res = await app.request('/', {}, env);
expect(res.status).toBe(200);
expect(await res.json()).toEqual({
hello: 'world',
var: 'your_variable',
})
})
import app from '../src/index'
import { env } from 'cloudflare:test'
import { expect, describe, it } from 'vitest'
describe('Test the application', () => {
it('Should return 200 response', async () => {
const res = await app.request('/', {}, env);
expect(res.status).toBe(200);
expect(await res.json()).toEqual({
hello: 'world',
var: 'your_variable',
})
})