const myapp = new Hono();
myapp.get('/', () => (<p>Hello world</p>));
describe('my-test', () => {
it('should work', async () => {
console.log('BEFORE');
myapp.request('/');
console.log('AFTER');
});
});
// vitest.config.ts
{ .... singleWorker: true .... }
const myapp = new Hono();
myapp.get('/', () => (<p>Hello world</p>));
describe('my-test', () => {
it('should work', async () => {
console.log('BEFORE');
myapp.request('/');
console.log('AFTER');
});
});
// vitest.config.ts
{ .... singleWorker: true .... }