ash_sqlite/documentation/how_to/test-with-sqlite.md

12 lines
326 B
Markdown
Raw Normal View History

2023-09-23 14:52:22 +12:00
# Testing With Sqlite
Testing resources with SQLite generally requires passing `async?: false` to
your tests, due to `SQLite`'s limitation of having a single write transaction
open at any one time.
This should be coupled with to make sure that Ash does not spawn any tasks.
```elixir
config :ash, :disable_async?, true
```