Skip to content

Commit

Permalink
docs: note how to not start a process when in testing
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar authored Oct 18, 2024
1 parent e646420 commit 4642807
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ ncdu 2.2
!!! info "New in version 1.0.6"

```nix title="devenv.nix"
{ pkgs, config, ... }: {
services.postgres.enable = config.devenv.isTesting;
{ pkgs, lib, config, ... }: {
processes.myprocess.exec = lib.mkIf (!config.devenv.isTesting!) "myexecutable";
}
```

Expand All @@ -91,4 +91,4 @@ ncdu 2.2
- `wait_for_port <port> <timeout>`: waits for a port to be open

If you'd like more functions to be added, take a look at [NixOS tests](https://nixos.org/manual/nixos/stable/#sec-nixos-tests)
and open an issue for what you need.
and open an issue for what you need.

0 comments on commit 4642807

Please sign in to comment.