# Solid session testing

**URL:** <https://forum.solidproject.org/t/solid-session-testing/2858>\
**Category:** App Testing\
**Created:** [April 5, 2020, 4:44pm UTC](https://forum.solidproject.org/t/solid-session-testing/2858 "2020-04-05T16:44:27Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![AdrianPerezManso](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/adrianperezmanso/32/1504_2.png) [@AdrianPerezManso](https://forum.solidproject.org/u/AdrianPerezManso)\
**Post date:** [April 8, 2020, 6:23pm UTC](https://forum.solidproject.org/t/solid-session-testing/2858/21 "2020-04-08T18:23:40Z")

</div>

We are using [solid-file-client](https://github.com/jeff-zucker/solid-file-client) to manage and upload the files.

---

<div class="post-metadata">

**Author:** ![jeffz](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/jeffz/32/600_2.png) [@jeffz](https://forum.solidproject.org/u/jeffz)\
**Post date:** [April 8, 2020, 6:29pm UTC](https://forum.solidproject.org/t/solid-session-testing/2858/22 "2020-04-08T18:29:22Z")

</div>

There are an extensive set of tests for solid-file-client all of which can be used against app://, file://, or https:// resources. With the app:// tests, no files are created on disc - everything is in memory but you can test all file i/o methods of solid-file-client - create and remove containers and resources.

---

<div class="post-metadata">

**Author:** ![aveltens](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/aveltens/32/3987_2.png) [@aveltens](https://forum.solidproject.org/u/aveltens)\
**Post date:** [April 8, 2020, 7:20pm UTC](https://forum.solidproject.org/t/solid-session-testing/2858/23 "2020-04-08T19:20:12Z")

</div>

> [@AdrianPerezManso](#):
>
> We are using [solid-file-client](https://github.com/jeff-zucker/solid-file-client) to manage and upload the files.

In unit tests you can simply mock solid-file-client via `jest.mock("solid-file-client")` and define fake return values or behaviour for the respective methods

[Previous page](https://forum.solidproject.org/t/solid-session-testing/2858.md?page=1)
