Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(examples/error_boundary): ci error #1739

Merged
merged 2 commits into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion examples/cargo-make/client-process.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ condition = { env_set = ["CLIENT_PROCESS_NAME"] }
script = '''
if [ -z $(pidof ${CLIENT_PROCESS_NAME}) ]; then
echo " Starting ${CLIENT_PROCESS_NAME}"
cargo make start-client ${@}
if [ -z ${SPAWN_CLIENT_PROCESS} ];then
cargo make start-client ${@} &
else
cargo make start-client ${@}
fi
else
echo " ${CLIENT_PROCESS_NAME} is already started"
fi
Expand Down
9 changes: 3 additions & 6 deletions examples/cargo-make/playwright-trunk-test.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@ extend = [
]

[tasks.integration-test]
dependencies = [
"maybe-start-client",
"wait-one",
"test-playwright",
"stop-client",
]
description = "Run integration test with automated start and stop of processes"
env = { SPAWN_CLIENT_PROCESS = "1" }
dependencies = ["start", "wait-one", "test-playwright", "stop"]

[tasks.wait-one]
script = '''
Expand Down
4 changes: 4 additions & 0 deletions examples/error_boundary/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ This example shows how to handle basic errors using Leptos.
## Getting Started

See the [Examples README](../README.md) for setup and run instructions.

## Testing

This project is configured to run start and stop of processes for integration tests wihtout the use of Cargo Leptos or Node.
Loading