-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
afa3588
commit 803a2c3
Showing
4 changed files
with
42 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
integration/src/server-express/02-runs-after-build-express.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* eslint-disable @typescript-eslint/no-floating-promises */ | ||
import type { ChildProcessWithoutNullStreams } from 'node:child_process'; | ||
import { after, it } from 'node:test'; | ||
|
||
import { launch } from '../__utils__/launch-server.js'; | ||
import { writeActual } from '../config.js'; | ||
import { common } from './_common.js'; | ||
|
||
let gracileProcess: ChildProcessWithoutNullStreams | null = null; | ||
|
||
it('runs and execute test suites with EXPRESS', async () => { | ||
gracileProcess = await launch('express.js', async () => { | ||
await common('prod', writeActual); | ||
}); | ||
}); | ||
|
||
after(() => { | ||
if (gracileProcess) gracileProcess.kill(); | ||
}); |
19 changes: 19 additions & 0 deletions
19
integration/src/server-express/03-runs-after-build-hono.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* eslint-disable @typescript-eslint/no-floating-promises */ | ||
import type { ChildProcessWithoutNullStreams } from 'node:child_process'; | ||
import { after, it } from 'node:test'; | ||
|
||
import { launch } from '../__utils__/launch-server.js'; | ||
import { writeActual } from '../config.js'; | ||
import { common } from './_common.js'; | ||
|
||
let gracileProcess: ChildProcessWithoutNullStreams | null = null; | ||
|
||
it('runs and execute test suites with EXPRESS', async () => { | ||
gracileProcess = await launch('hono.js', async () => { | ||
await common('prod', writeActual); | ||
}); | ||
}); | ||
|
||
after(() => { | ||
if (gracileProcess) gracileProcess.kill(); | ||
}); |