mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
fix(examples/error_boundary): ci error (#1739)
* fix(examples/build): maybe spawn client process * docs(examples/error_boundary): add testing note
This commit is contained in:
parent
7e5169e66d
commit
7ef57345ca
3 changed files with 12 additions and 7 deletions
|
@ -23,7 +23,11 @@ condition = { env_set = ["CLIENT_PROCESS_NAME"] }
|
||||||
script = '''
|
script = '''
|
||||||
if [ -z $(pidof ${CLIENT_PROCESS_NAME}) ]; then
|
if [ -z $(pidof ${CLIENT_PROCESS_NAME}) ]; then
|
||||||
echo " Starting ${CLIENT_PROCESS_NAME}"
|
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
|
else
|
||||||
echo " ${CLIENT_PROCESS_NAME} is already started"
|
echo " ${CLIENT_PROCESS_NAME} is already started"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -4,12 +4,9 @@ extend = [
|
||||||
]
|
]
|
||||||
|
|
||||||
[tasks.integration-test]
|
[tasks.integration-test]
|
||||||
dependencies = [
|
description = "Run integration test with automated start and stop of processes"
|
||||||
"maybe-start-client",
|
env = { SPAWN_CLIENT_PROCESS = "1" }
|
||||||
"wait-one",
|
dependencies = ["start", "wait-one", "test-playwright", "stop"]
|
||||||
"test-playwright",
|
|
||||||
"stop-client",
|
|
||||||
]
|
|
||||||
|
|
||||||
[tasks.wait-one]
|
[tasks.wait-one]
|
||||||
script = '''
|
script = '''
|
||||||
|
|
|
@ -5,3 +5,7 @@ This example shows how to handle basic errors using Leptos.
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
See the [Examples README](../README.md) for setup and run instructions.
|
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…
Reference in a new issue