Testing Sqlite, or storage beyond key/value pairs?

What is the recommended way of testing code that uses @ionic-native/sqlite ?

I’m developing on a (Windows) desktop, so tests accessing the native SQLite package fail.

Several replies to questions regarding use of SQLite recommend using Storage instead, but afaik Storage only provides key/value pairs, and I would like to use more than that.

If you don’t get any better answers, I would suggest mocking it out. You’re presumably trying to test things that use SQLite, not ionic-native itself, so just make a mock class that returns constant data.

1 Like

That was the way I was thinking, but thought maybe I was missing something…

Thanks for taking the time,