Skip to content

Commit

Permalink
Merge pull request #2 from redimpulz/fix/server_std_listen_wait
Browse files Browse the repository at this point in the history
リッスン後の標準出力のチェックは不要に
  • Loading branch information
takahash authored Apr 11, 2024
2 parents 2ad75e5 + 5c28312 commit 9df9d93
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Install Playwright Browsers
run: yarn playwright install --with-deps chromium
- name: Run Unit tests
run: yarn test
run: yarn vitest
- name: Run Playwright tests
run: yarn playwright test
- uses: actions/upload-artifact@v3
Expand Down
7 changes: 3 additions & 4 deletions __tests__/e2e/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { test, expect } from "@playwright/test";
import { ChildProcessWithoutNullStreams } from "child_process";
import { ChildProcessWithoutNullStreams, spawn } from "child_process";

import { startServer } from "../utils";
import { todoList } from "../../todoList";

let serverProcess: ChildProcessWithoutNullStreams;

test.beforeAll("setup", async () => {
serverProcess = await startServer(["./index.js"]);
test.beforeAll("setup", () => {
serverProcess = spawn("node", ["./index.js"]);
});

test.afterAll("teardown", () => {
Expand Down
9 changes: 0 additions & 9 deletions __tests__/utils/index.ts

This file was deleted.

0 comments on commit 9df9d93

Please sign in to comment.