---
title: "Discussion on \"Mocking and Testing Shared Preferences in Flutter Unit Tests\" | Hashnode"
description: "Discussion on \"Mocking and Testing Shared Preferences in Flutter Unit Tests\". Introduction\nThis article demonstrates how to unit-test Shared Preferences in Flutter projects.\nThis article assumes that the reader is familiar with Flutter development and the Dart language.\nThe cod"
url: "https://hashnode.com/posts/mocking-shared-preferences-flutter/61adea7c4389d636ce8b95c9"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Mocking and Testing Shared Preferences in Flutter Unit Tests](https://blog.victoreronmosele.com/mocking-shared-preferences-flutter?utm_source=hashnode&utm_medium=feed)

Introduction This article demonstrates how to unit-test Shared Preferences in Flutter projects. This article assumes that the reader is familiar with Flutter development and the Dart language. The cod

Dec 6, 2021 · 5 min read · blog.victoreronmosele.com  
Updated Oct 13  
Read the article

-   [#unit-testing](https://hashnode.com/tag/unit-testing)
-   [#flutter](https://hashnode.com/tag/flutter)
-   [#dart](https://hashnode.com/tag/dart)
-   [#testing](https://hashnode.com/tag/testing)

## Written by

[Victor Eronmosele](https://hashnode.com/@victoreronmosele)

@victoreronmosele · Lagos, Nigeria

  
[View profile](https://hashnode.com/@victoreronmosele)

Software Engineer.

A highly motivated software engineer especially experienced as a mobile team lead working with diverse teams from all over the globe. Both as a team player and a mentor, he enjoys building secure, well-tested and visually appealing applications. Being ambitious and hardworking, he loves writing technical articles and spends his free time answering questions on StackOverflow as well as working on open-source projects.

## Responses

Comments are turned off for this post.
