mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-08-08 16:26:23 +00:00
attempt to fix test
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { execaNode } from 'execa';
|
||||
|
||||
export default async function globalSetup() {
|
||||
// E2Eテスト用のサーバを起動する
|
||||
await execaNode('./built-test/entry.js', [], {
|
||||
stdout: process.stdout,
|
||||
stderr: process.stderr,
|
||||
env: {
|
||||
NODE_ENV: 'test',
|
||||
},
|
||||
});
|
||||
}
|
||||
@@ -6,7 +6,7 @@ export default mergeConfig(
|
||||
defineConfig({
|
||||
test: {
|
||||
include: ['./test/e2e/**/*.ts'],
|
||||
globalSetup: './built-test/entry.js',
|
||||
globalSetup: './test/global-setup.e2e.ts',
|
||||
setupFiles: ['./test/setup.e2e.ts'],
|
||||
},
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user